diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-03-26 05:04:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-27 16:08:08 -0400 |
commit | e5225b397308f9eea86327293b73dc88068e0179 (patch) | |
tree | e45ede3806ae829fc0773bce6aa7b2ec7c7eae93 | |
parent | 056cdd599d004e36de64c925b8a13f6676451360 (diff) |
libertas: reduce debug output
This patch tries to make dmesg logs between different runs easier
to compare by
* removing the jiffies (use CONFIG_PRINTK_TIME if you need
timing)
* remove the line numbers, they change with each applied patch
It also changes the deprecated __FUNCTION__ to __func__ to make
checkpatch.pl happy.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/defs.h | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index f3e0818d94a3..44b918a6c219 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1186,8 +1186,8 @@ static void lbs_submit_command(struct lbs_private *priv, | |||
1186 | command == CMD_802_11_AUTHENTICATE) | 1186 | command == CMD_802_11_AUTHENTICATE) |
1187 | timeo = 10 * HZ; | 1187 | timeo = 10 * HZ; |
1188 | 1188 | ||
1189 | lbs_deb_cmd("DNLD_CMD: command 0x%04x, seq %d, size %d, jiffies %lu\n", | 1189 | lbs_deb_cmd("DNLD_CMD: command 0x%04x, seq %d, size %d\n", |
1190 | command, le16_to_cpu(cmd->seqnum), cmdsize, jiffies); | 1190 | command, le16_to_cpu(cmd->seqnum), cmdsize); |
1191 | lbs_deb_hex(LBS_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); | 1191 | lbs_deb_hex(LBS_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); |
1192 | 1192 | ||
1193 | ret = priv->hw_host_to_card(priv, MVMS_CMD, (u8 *) cmd, cmdsize); | 1193 | ret = priv->hw_host_to_card(priv, MVMS_CMD, (u8 *) cmd, cmdsize); |
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 711f5ebd13c0..9de9666d495b 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -455,8 +455,8 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
455 | respcmd = le16_to_cpu(resp->command); | 455 | respcmd = le16_to_cpu(resp->command); |
456 | result = le16_to_cpu(resp->result); | 456 | result = le16_to_cpu(resp->result); |
457 | 457 | ||
458 | lbs_deb_cmd("CMD_RESP: response 0x%04x, seq %d, size %d, jiffies %lu\n", | 458 | lbs_deb_cmd("CMD_RESP: response 0x%04x, seq %d, size %d\n", |
459 | respcmd, le16_to_cpu(resp->seqnum), priv->upld_len, jiffies); | 459 | respcmd, le16_to_cpu(resp->seqnum), priv->upld_len); |
460 | lbs_deb_hex(LBS_DEB_CMD, "CMD_RESP", (void *) resp, priv->upld_len); | 460 | lbs_deb_hex(LBS_DEB_CMD, "CMD_RESP", (void *) resp, priv->upld_len); |
461 | 461 | ||
462 | if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) { | 462 | if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) { |
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h index 3053cc2160bc..84e8de5e21da 100644 --- a/drivers/net/wireless/libertas/defs.h +++ b/drivers/net/wireless/libertas/defs.h | |||
@@ -53,14 +53,14 @@ do { if ((lbs_debug & (grp)) == (grp)) \ | |||
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #define lbs_deb_enter(grp) \ | 55 | #define lbs_deb_enter(grp) \ |
56 | LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s():%d\n", __FUNCTION__, __LINE__); | 56 | LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s()\n", __func__); |
57 | #define lbs_deb_enter_args(grp, fmt, args...) \ | 57 | #define lbs_deb_enter_args(grp, fmt, args...) \ |
58 | LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s(" fmt "):%d\n", __FUNCTION__, ## args, __LINE__); | 58 | LBS_DEB_LL(grp | LBS_DEB_ENTER, " enter", "%s(" fmt ")\n", __func__, ## args); |
59 | #define lbs_deb_leave(grp) \ | 59 | #define lbs_deb_leave(grp) \ |
60 | LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s():%d\n", __FUNCTION__, __LINE__); | 60 | LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s()\n", __func__); |
61 | #define lbs_deb_leave_args(grp, fmt, args...) \ | 61 | #define lbs_deb_leave_args(grp, fmt, args...) \ |
62 | LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s():%d, " fmt "\n", \ | 62 | LBS_DEB_LL(grp | LBS_DEB_LEAVE, " leave", "%s(), " fmt "\n", \ |
63 | __FUNCTION__, __LINE__, ##args); | 63 | __func__, ##args); |
64 | #define lbs_deb_main(fmt, args...) LBS_DEB_LL(LBS_DEB_MAIN, " main", fmt, ##args) | 64 | #define lbs_deb_main(fmt, args...) LBS_DEB_LL(LBS_DEB_MAIN, " main", fmt, ##args) |
65 | #define lbs_deb_net(fmt, args...) LBS_DEB_LL(LBS_DEB_NET, " net", fmt, ##args) | 65 | #define lbs_deb_net(fmt, args...) LBS_DEB_LL(LBS_DEB_NET, " net", fmt, ##args) |
66 | #define lbs_deb_mesh(fmt, args...) LBS_DEB_LL(LBS_DEB_MESH, " mesh", fmt, ##args) | 66 | #define lbs_deb_mesh(fmt, args...) LBS_DEB_LL(LBS_DEB_MESH, " mesh", fmt, ##args) |