From 820a922eb2dcbf8ca86090aabcca4efee6be68b5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 22 Sep 1995 17:22:34 +0000 Subject: (get_hypermetadata): Use %Zd format for result of sizeof. --- ufs/hyper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ufs') diff --git a/ufs/hyper.c b/ufs/hyper.c index 8a556cef..36d71728 100644 --- a/ufs/hyper.c +++ b/ufs/hyper.c @@ -1,5 +1,5 @@ /* Fetching and storing the hypermetadata (superblock and cg summary info). - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -44,7 +44,7 @@ get_hypermetadata (void) } if (sblock->fs_bsize < sizeof (struct fs)) { - fprintf (stderr, "Block size %ld is too small (min is %ld bytes)\n", + fprintf (stderr, "Block size %ld is too small (min is %Zd bytes)\n", sblock->fs_bsize, sizeof (struct fs)); exit (1); } @@ -52,7 +52,7 @@ get_hypermetadata (void) if (sblock->fs_maxsymlinklen > (long)MAXSYMLINKLEN) { fprintf (stderr, "Max shortcut symlinklen %ld is too big (max is %ld)\n", - sblock->fs_maxsymlinklen, MAXSYMLINKLEN); + sblock->fs_maxsymlinklen, (long)MAXSYMLINKLEN); exit (1); } -- cgit v1.2.3