Commit 82c2c8b8616fa9e77264c53f0df483f74ac54613

Authored by Vasily Averin
Committed by Trond Myklebust
1 parent 726fd6ad59

lockd: properly convert be32 values in debug messages

lockd: server returns status 50331648
it's quite hard to understand that number in this message is 3 in big endian

Signed-off-by: Vasily Averin <vvs@sw.ru>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff

... ... @@ -302,7 +302,8 @@
302 302 /* We appear to be out of the grace period */
303 303 wake_up_all(&host->h_gracewait);
304 304 }
305   - dprintk("lockd: server returns status %d\n", resp->status);
  305 + dprintk("lockd: server returns status %d\n",
  306 + ntohl(resp->status));
306 307 return 0; /* Okay, call complete */
307 308 }
308 309  
... ... @@ -690,7 +691,8 @@
690 691 goto out;
691 692  
692 693 if (resp->status != nlm_lck_denied_nolocks)
693   - printk("lockd: unexpected unlock status: %d\n", resp->status);
  694 + printk("lockd: unexpected unlock status: %d\n",
  695 + ntohl(resp->status));
694 696 /* What to do now? I'm out of my depth... */
695 697 status = -ENOLCK;
696 698 out:
... ... @@ -843,7 +845,8 @@
843 845 return -ENOLCK;
844 846 #endif
845 847 }
846   - printk(KERN_NOTICE "lockd: unexpected server status %d\n", status);
  848 + printk(KERN_NOTICE "lockd: unexpected server status %d\n",
  849 + ntohl(status));
847 850 return -ENOLCK;
848 851 }