summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky.perez-gonzalez>2008-12-05 10:36:28 -0800
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2008-12-05 10:36:28 -0800
commit3740ecc83b38a2395c4d107f2b842976a1edb7a4 (patch)
treec15780b5807a8bd92d5bf73fa0040395cecbff6d
parentba2e1289654bfebf55e405578b2450a69fd7b2ad (diff)
libwimaxll: add debug traces to a few functions
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r--lib/op-reset.c2
-rw-r--r--lib/op-rfkill.c2
-rw-r--r--lib/wimax.c3
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/op-reset.c b/lib/op-reset.c
index 7f402fd..c78fef4 100644
--- a/lib/op-reset.c
+++ b/lib/op-reset.c
@@ -88,6 +88,7 @@ int wimaxll_reset(struct wimaxll_handle *wmx)
ssize_t result;
struct nl_msg *msg;
+ d_fnstart(3, wmx, "(wmx %p)\n", wmx);
msg = nlmsg_new();
if (msg == NULL) {
result = errno;
@@ -118,5 +119,6 @@ error_msg_prep:
error_msg_send:
nlmsg_free(msg);
error_msg_alloc:
+ d_fnend(3, wmx, "(wmx %p) = %d\n", wmx, result);
return result;
}
diff --git a/lib/op-rfkill.c b/lib/op-rfkill.c
index a5695c9..cad5f4e 100644
--- a/lib/op-rfkill.c
+++ b/lib/op-rfkill.c
@@ -94,6 +94,7 @@ int wimaxll_rfkill(struct wimaxll_handle *wmx, enum wimax_rf_state state)
ssize_t result;
struct nl_msg *msg;
+ d_fnstart(3, wmx, "(wmx %p state %u)\n", wmx, state);
msg = nlmsg_new();
if (msg == NULL) {
result = errno;
@@ -125,5 +126,6 @@ error_msg_prep:
error_msg_send:
nlmsg_free(msg);
error_msg_alloc:
+ d_fnend(3, wmx, "(wmx %p state %u) = %d\n", wmx, state, result);
return result;
}
diff --git a/lib/wimax.c b/lib/wimax.c
index 0f337fb..5af4126 100644
--- a/lib/wimax.c
+++ b/lib/wimax.c
@@ -101,7 +101,6 @@ int wimaxll_gnl_error_cb(struct sockaddr_nl *nla, struct nlmsgerr *nlerr,
*
* Frontend to this is wimaxll_wait_for_ack()
*/
-static
int wimaxll_gnl_ack_cb(struct nl_msg *msg, void *_mch)
{
int result;
@@ -110,6 +109,7 @@ int wimaxll_gnl_ack_cb(struct nl_msg *msg, void *_mch)
size_t size = nlmsg_len(nlmsg_hdr(msg));
struct wimaxll_mc_handle *mch = _mch;
+ d_fnstart(7, NULL, "(msg %p mch %p)\n", msg, _mch);
nl_hdr = nlmsg_hdr(msg);
size = nlmsg_len(nl_hdr);
nl_err = nlmsg_data(nl_hdr);
@@ -142,6 +142,7 @@ int wimaxll_gnl_ack_cb(struct nl_msg *msg, void *_mch)
nl_err->error);
error_ack_short:
error_bad_type:
+ d_fnend(7, NULL, "(msg %p mch %p) = NL_STOP\n", msg, _mch);
return NL_STOP;
}