Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt Fix compile error observed on i386. Use PRIu64.



details:   https://anonhg.NetBSD.org/src/rev/5062ba4252c7
branches:  trunk
changeset: 802620:5062ba4252c7
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Sep 23 13:48:04 2014 +0000

description:
Fix compile error observed on i386. Use PRIu64.

diffstat:

 sbin/gpt/resizedisk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 019c10ed908d -r 5062ba4252c7 sbin/gpt/resizedisk.c
--- a/sbin/gpt/resizedisk.c     Tue Sep 23 13:29:30 2014 +0000
+++ b/sbin/gpt/resizedisk.c     Tue Sep 23 13:48:04 2014 +0000
@@ -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 @@
                }
        }
        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) {



Home | Main Index | Thread Index | Old Index