Source-Changes-HG archive

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

[src/trunk]: src/libexec/lfs_cleanerd Cast arg to long, and print with %ld, s...



details:   https://anonhg.NetBSD.org/src/rev/856ec69e0d2c
branches:  trunk
changeset: 526294:856ec69e0d2c
user:      agc <agc%NetBSD.org@localhost>
date:      Tue Apr 30 15:21:55 2002 +0000

description:
Cast arg to long, and print with %ld, so that this compiles on some of
the more esoteric architectures.

diffstat:

 libexec/lfs_cleanerd/library.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b96af7daf955 -r 856ec69e0d2c libexec/lfs_cleanerd/library.c
--- a/libexec/lfs_cleanerd/library.c    Tue Apr 30 15:08:44 2002 +0000
+++ b/libexec/lfs_cleanerd/library.c    Tue Apr 30 15:21:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: library.c,v 1.24 2002/04/30 00:28:58 perseant Exp $    */
+/*     $NetBSD: library.c,v 1.25 2002/04/30 15:21:55 agc Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)library.c  8.3 (Berkeley) 5/24/95";
 #else
-__RCSID("$NetBSD: library.c,v 1.24 2002/04/30 00:28:58 perseant Exp $");
+__RCSID("$NetBSD: library.c,v 1.25 2002/04/30 15:21:55 agc Exp $");
 #endif
 #endif /* not lint */
 
@@ -356,8 +356,8 @@
        lfsp = &fsp->fi_lfs;
        nelem = 2 * segtod(lfsp, 1);
        if (!(bip = malloc(nelem * sizeof(BLOCK_INFO_15)))) {
-               syslog(LOG_DEBUG, "couldn't allocate %d bytes in lfs_segmapv",
-                       nelem * sizeof(BLOCK_INFO_15));
+               syslog(LOG_DEBUG, "couldn't allocate %ld bytes in lfs_segmapv",
+                       (long)(nelem * sizeof(BLOCK_INFO_15)));
                goto err0;
        }
 



Home | Main Index | Thread Index | Old Index