[Ocfs2-tools-commits] zab commits r475 - trunk/mount.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Dec 10 13:34:56 CST 2004


Author: zab
Date: 2004-12-10 13:34:54 -0600 (Fri, 10 Dec 2004)
New Revision: 475

Modified:
   trunk/mount.ocfs2/mount.ocfs2.c
Log:
o kill format warnings on x86-64


Modified: trunk/mount.ocfs2/mount.ocfs2.c
===================================================================
--- trunk/mount.ocfs2/mount.ocfs2.c	2004-12-09 23:14:02 UTC (rev 474)
+++ trunk/mount.ocfs2/mount.ocfs2.c	2004-12-10 19:34:54 UTC (rev 475)
@@ -1,8 +1,4 @@
 /*
- * listuuid.c
- *
- * Lists UUIDs of all the devices
- *
  * Copyright (C) 2004 Oracle.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or
@@ -29,6 +25,7 @@
 
 #include <sys/types.h>
 #include <asm/types.h>
+#include <inttypes.h>
 
 #define u8   __u8
 #define s8   __s8
@@ -859,7 +856,9 @@
 
 	tmpbuf = buf;
 	for (i=0; i<NM_MAX_NODES; i++) {
-		printf("node: %d: before=%llu, after=%llu\n", i, times[i].time, ((hb_disk_heartbeat_block *)tmpbuf)->time);
+		printf("node: %d: before=%"PRIu64", after=%"PRIu64"\n", i,
+			times[i].time,
+			((hb_disk_heartbeat_block *)tmpbuf)->time);
 		if (times[i].time != ((hb_disk_heartbeat_block *)tmpbuf)->time) {
 			printf(" >>>>>  aha node %d seems to be up!\n", i);
 			ocfs2_set_bit(i, bitmap);



More information about the Ocfs2-tools-commits mailing list