Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_lfs Make this build on arm platforms by using the ...



details:   https://anonhg.NetBSD.org/src/rev/d050251b5c78
branches:  trunk
changeset: 581088:d050251b5c78
user:      agc <agc%NetBSD.org@localhost>
date:      Tue May 24 06:51:49 2005 +0000

description:
Make this build on arm platforms by using the correct printf formats.

diffstat:

 sbin/fsck_lfs/setup.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 4112bbfc29c4 -r d050251b5c78 sbin/fsck_lfs/setup.c
--- a/sbin/fsck_lfs/setup.c     Tue May 24 05:25:15 2005 +0000
+++ b/sbin/fsck_lfs/setup.c     Tue May 24 06:51:49 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.22 2005/05/23 22:17:20 perseant Exp $ */
+/* $NetBSD: setup.c,v 1.23 2005/05/24 06:51:49 agc Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -323,15 +323,15 @@
         */
        din_table = (ufs_daddr_t *) malloc(maxino * sizeof(*din_table));
        if (din_table == NULL) {
-               printf("cannot alloc %u bytes for din_table\n",
-                   (unsigned) maxino * sizeof(*din_table));
+               printf("cannot alloc %lu bytes for din_table\n",
+                   (unsigned long) maxino * sizeof(*din_table));
                goto badsblabel;
        }
        memset(din_table, 0, maxino * sizeof(*din_table));
        seg_table = (SEGUSE *) malloc(fs->lfs_nseg * sizeof(SEGUSE));
        if (seg_table == NULL) {
-               printf("cannot alloc %u bytes for seg_table\n",
-                   (unsigned) fs->lfs_nseg * sizeof(SEGUSE));
+               printf("cannot alloc %lu bytes for seg_table\n",
+                   (unsigned long) fs->lfs_nseg * sizeof(SEGUSE));
                goto badsblabel;
        }
        memset(seg_table, 0, fs->lfs_nseg * sizeof(SEGUSE));



Home | Main Index | Thread Index | Old Index