]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
NSM: convert printk(KERN_DEBUG) to a dprintk()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 4 Dec 2008 19:20:31 +0000 (14:20 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:50 +0000 (11:53 -0500)
Clean up: make the printk(KERN_DEBUG) in nsm_mon_unmon() a dprintk,
and add another dprintk to note if creating an RPC client for the
upcall failed.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/mon.c

index 6f6ff410341a198a8f2430db9800437f11ebe4a8..497dfea02e8a13a3bebcc99cb802b0ad84eefa35 100644 (file)
@@ -52,6 +52,8 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res)
        clnt = nsm_create();
        if (IS_ERR(clnt)) {
                status = PTR_ERR(clnt);
+               dprintk("lockd: failed to create NSM upcall transport, "
+                               "status=%d\n", status);
                goto out;
        }
 
@@ -60,8 +62,8 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res)
        msg.rpc_proc = &clnt->cl_procinfo[proc];
        status = rpc_call_sync(clnt, &msg, 0);
        if (status < 0)
-               printk(KERN_DEBUG "nsm_mon_unmon: rpc failed, status=%d\n",
-                       status);
+               dprintk("lockd: NSM upcall RPC failed, status=%d\n",
+                               status);
        else
                status = 0;
        rpc_shutdown_client(clnt);