summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-08 14:11:03 +0000
committerbde <bde@FreeBSD.org>1999-08-08 14:11:03 +0000
commit42539e65d17cc136a3e363466b97ba8ec0514e0e (patch)
treeaaf992c4a47fa9e1f21296208a6f3b4327d54fce /sys/dev
parent557aa1ee53ce9f783d604f653ff424ffd2af9b18 (diff)
downloadFreeBSD-src-42539e65d17cc136a3e363466b97ba8ec0514e0e.zip
FreeBSD-src-42539e65d17cc136a3e363466b97ba8ec0514e0e.tar.gz
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.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vinum/vinumio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c
index 8c73a17..8fa4f3e 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 <dev/vinum/vinumhdr.h>
@@ -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 */
OpenPOWER on IntegriCloud