[PATCH] ocfs2/cluster/netdebug.c: fix warning
authorAlexander Beregalov <a.beregalov@gmail.com>
Tue, 5 Aug 2008 20:50:41 +0000 (00:50 +0400)
committerMark Fasheh <mfasheh@suse.com>
Fri, 22 Aug 2008 17:56:57 +0000 (10:56 -0700)
ocfs2/cluster/netdebug.c: fix warning

fs/ocfs2/cluster/netdebug.c:154: warning: format '%lu' expects
     type 'long unsigned int', but argument 17 has type 'suseconds_t'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/cluster/netdebug.c

index d8bfa0eb41b29415b79ae1bce099d6d2b21d6c20..52276c02f71041665ba3389b9d690e46e8c075dd 100644 (file)
@@ -138,20 +138,20 @@ static int nst_seq_show(struct seq_file *seq, void *v)
                           "  message id:   %d\n"
                           "  message type: %u\n"
                           "  message key:  0x%08x\n"
-                          "  sock acquiry: %lu.%lu\n"
-                          "  send start:   %lu.%lu\n"
-                          "  wait start:   %lu.%lu\n",
+                          "  sock acquiry: %lu.%ld\n"
+                          "  send start:   %lu.%ld\n"
+                          "  wait start:   %lu.%ld\n",
                           nst, (unsigned long)nst->st_task->pid,
                           (unsigned long)nst->st_task->tgid,
                           nst->st_task->comm, nst->st_node,
                           nst->st_sc, nst->st_id, nst->st_msg_type,
                           nst->st_msg_key,
                           nst->st_sock_time.tv_sec,
-                          (unsigned long)nst->st_sock_time.tv_usec,
+                          (long)nst->st_sock_time.tv_usec,
                           nst->st_send_time.tv_sec,
-                          (unsigned long)nst->st_send_time.tv_usec,
+                          (long)nst->st_send_time.tv_usec,
                           nst->st_status_time.tv_sec,
-                          nst->st_status_time.tv_usec);
+                          (long)nst->st_status_time.tv_usec);
        }
 
        spin_unlock(&o2net_debug_lock);
@@ -276,7 +276,7 @@ static void *sc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
        return sc; /* unused, just needs to be null when done */
 }
 
-#define TV_SEC_USEC(TV) TV.tv_sec, (unsigned long)TV.tv_usec
+#define TV_SEC_USEC(TV) TV.tv_sec, (long)TV.tv_usec
 
 static int sc_seq_show(struct seq_file *seq, void *v)
 {
@@ -309,12 +309,12 @@ static int sc_seq_show(struct seq_file *seq, void *v)
                           "  remote node:     %s\n"
                           "  page off:        %zu\n"
                           "  handshake ok:    %u\n"
-                          "  timer:           %lu.%lu\n"
-                          "  data ready:      %lu.%lu\n"
-                          "  advance start:   %lu.%lu\n"
-                          "  advance stop:    %lu.%lu\n"
-                          "  func start:      %lu.%lu\n"
-                          "  func stop:       %lu.%lu\n"
+                          "  timer:           %lu.%ld\n"
+                          "  data ready:      %lu.%ld\n"
+                          "  advance start:   %lu.%ld\n"
+                          "  advance stop:    %lu.%ld\n"
+                          "  func start:      %lu.%ld\n"
+                          "  func stop:       %lu.%ld\n"
                           "  func key:        %u\n"
                           "  func type:       %u\n",
                           sc,