Module Name: src
Committed By: msaitoh
Date: Tue Sep 23 13:48:04 UTC 2014
Modified Files:
src/sbin/gpt: resizedisk.c
Log Message:
Fix compile error observed on i386. Use PRIu64.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/gpt/resizedisk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/resizedisk.c
diff -u src/sbin/gpt/resizedisk.c:1.1 src/sbin/gpt/resizedisk.c:1.2
--- src/sbin/gpt/resizedisk.c:1.1 Tue Sep 23 07:47:54 2014
+++ src/sbin/gpt/resizedisk.c Tue Sep 23 13:48:04 2014
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: resizedisk.c,v 1.1 2014/09/23 07:47:54 jnemeth Exp $");
+__RCSID("$NetBSD: resizedisk.c,v 1.2 2014/09/23 13:48:04 msaitoh Exp $");
#endif
#include <sys/bootblock.h>
@@ -142,8 +142,8 @@ resizedisk(int fd)
}
}
if (sector - gpt_size <= lastdata) {
- warnx("%s: not enough space at %lu for secondary GPT table",
- device_name, sector);
+ warnx("%s: not enough space at %" PRIu64
+ " for secondary GPT table", device_name, sector);
return;
}
if (last - gpt_size <= lastdata) {