Source-Changes-HG archive

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

[src/trunk]: src/dist/iscsi/src Print __uint64_t variables with PRIu64, not w...



details:   https://anonhg.NetBSD.org/src/rev/eeb95f5ef425
branches:  trunk
changeset: 588141:eeb95f5ef425
user:      he <he%NetBSD.org@localhost>
date:      Thu Feb 09 15:11:40 2006 +0000

description:
Print __uint64_t variables with PRIu64, not with lld.
Fixes build on alpha and probably other LP64 platforms.

diffstat:

 dist/iscsi/src/iscsi-target.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ef4a134e9db7 -r eeb95f5ef425 dist/iscsi/src/iscsi-target.c
--- a/dist/iscsi/src/iscsi-target.c     Thu Feb 09 10:08:32 2006 +0000
+++ b/dist/iscsi/src/iscsi-target.c     Thu Feb 09 15:11:40 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi-target.c,v 1.1.1.1 2006/02/08 18:56:16 agc Exp $ */
+/* $NetBSD: iscsi-target.c,v 1.2 2006/02/09 15:11:40 he Exp $ */
 
 /*
  * Copyright © 2006 Alistair Crooks.  All rights reserved.
@@ -189,7 +189,7 @@
                        }
                        if (devvp->v[devvp->c].xv[devvp->v[devvp->c].c].u.xp->len != devvp->v[devvp->c].len) {
                                (void) fprintf(stderr, "%s:%d: ", conffile_get_name(cf), conffile_get_lineno(cf));
-                               (void) fprintf(stderr, "Error: extent `%s' has size %lld, not %lld\n", ep->sv.v[devvp->v[devvp->c].c + 2], devvp->v[devvp->c].xv[devvp->v[devvp->c].c].u.xp->len, 
devvp->v[devvp->c].len);
+                               (void) fprintf(stderr, "Error: extent `%s' has size %" PRIu64 ", not %" PRIu64"\n", ep->sv.v[devvp->v[devvp->c].c + 2], 
devvp->v[devvp->c].xv[devvp->v[devvp->c].c].u.xp->len, devvp->v[devvp->c].len);
                                return 0;
                        }
                        devvp->v[devvp->c].xv[devvp->v[devvp->c].c].type = DE_EXTENT;
@@ -279,7 +279,7 @@
        for (i = 0 ; i < indent ; i++) {
                (void) fputc('\t', stdout);
        }
-       printf("%s:%s:%lld:%lld\n", ep->extent, ep->dev, ep->sacred, ep->len);
+       printf("%s:%s:%" PRIu64 ":%" PRIu64 "\n", ep->extent, ep->dev, ep->sacred, ep->len);
 }
 
 static void pdevice(disc_device_t *, int);



Home | Main Index | Thread Index | Old Index