From 890c628e7983422c47dc3e8f17ddf9e235b8afc8 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 8 Aug 1999 14:11:03 +0000 Subject: [PATCH] Fixed all printf format errors reported by gcc -Wformat on i386's: - %q -> %ll. Fixed nearby errors not reported by gcc -Wformat on i386's: - don't assume that the promotion of [u_]int64_t is [u_]quad_t. - don't use signed formats for unsigned args. --- sys/dev/vinum/vinumio.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index 8c73a171e9c6..8fa4f3ebc1e2 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumio.c,v 1.25 1999/06/28 02:37:48 grog Exp grog $ + * $Id: vinumio.c,v 1.33 1999/08/07 08:07:05 grog Exp $ */ #include @@ -656,23 +656,23 @@ format_config(char *config, int len) if (sd->plexno >= 0) snprintf(s, configend - s, - "sd name %s drive %s plex %s state %s len %qds driveoffset %qds plexoffset %qds\n", + "sd name %s drive %s plex %s state %s len %llus driveoffset %llus plexoffset %llds\n", sd->name, vinum_conf.drive[sd->driveno].label.name, vinum_conf.plex[sd->plexno].name, sd_state(sd->state), - sd->sectors, - sd->driveoffset, - sd->plexoffset); + (unsigned long long) sd->sectors, + (unsigned long long) sd->driveoffset, + (long long) sd->plexoffset); else snprintf(s, configend - s, - "sd name %s drive %s state %s len %qds driveoffset %qds detached\n", + "sd name %s drive %s state %s len %llus driveoffset %llus detached\n", sd->name, vinum_conf.drive[sd->driveno].label.name, sd_state(sd->state), - sd->sectors, - sd->driveoffset); + (unsigned long long) sd->sectors, + (unsigned long long) sd->driveoffset); while (*s) s++; /* find the end */