Fix gcc warnings coming from kdbm_pg.c:

   kdb/modules/kdbm_pg.c: In function 'print_request':
   kdb/modules/kdbm_pg.c:251: warning: format '%llu'
        expects type 'long long unsigned int',
        but argument 3 has type 'sector_t'
   kdb/modules/kdbm_pg.c:251: warning: format '%lu'
        expects type 'long unsigned int',
        but argument 4 has type 'unsigned int'

Signed-off-by: Joe Korty <[email protected]>

Index: 2.6.31.3-kdb/kdb/modules/kdbm_pg.c
===================================================================
--- 2.6.31.3-kdb.orig/kdb/modules/kdbm_pg.c     2009-10-12 11:05:01.000000000 
-0400
+++ 2.6.31.3-kdb/kdb/modules/kdbm_pg.c  2009-10-12 11:06:59.000000000 -0400
@@ -247,8 +247,10 @@
                return(0);
 
        kdb_printf("struct request at 0x%lx\n", addr);
-       kdb_printf("  errors %d sector %llu nr_sectors %lu\n",
-                       rq.errors, blk_rq_pos(&rq), blk_rq_sectors(&rq));
+       kdb_printf("  errors %d sector %llu nr_sectors %llu\n",
+                       rq.errors,
+                       (unsigned long long)blk_rq_pos(&rq),
+                       (unsigned long long)blk_rq_sectors(&rq));
 
        return (unsigned long) rq.queuelist.next;
 }

_______________________________________________
kdb mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/kdb

Reply via email to