summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2011-08-08 18:18:22 +0000
committermarco <marco@openbsd.org>2011-08-08 18:18:22 +0000
commit57c6d26400c8ad550ae324d3b32b2dfb37ed6556 (patch)
treec4359a0ee46f64e92db2451dd8fa182610b3fb58 /sys/dev/softraid.c
parentcreate pflog0 if pf is enabled just like we do in the pflogd script (diff)
downloadwireguard-openbsd-57c6d26400c8ad550ae324d3b32b2dfb37ed6556.tar.xz
wireguard-openbsd-57c6d26400c8ad550ae324d3b32b2dfb37ed6556.zip
Fix a formating bug that caused a bad print on big endian arches.
ok deraadt
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index a59f5ef5c73..5ccbb58592e 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.245 2011/07/17 22:46:48 matthew Exp $ */
+/* $OpenBSD: softraid.c,v 1.246 2011/08/08 18:18:22 marco Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -3958,7 +3958,7 @@ sr_rebuild_thread(void *arg)
percent = 100 - ((psz * 100 - rb * 100) / psz) - 1;
else
percent = 0;
- printf("%s: resuming rebuild on %s at %llu%%\n",
+ printf("%s: resuming rebuild on %s at %d%%\n",
DEVNAME(sc), sd->sd_meta->ssd_devname, percent);
}