aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/asmc/asmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index f99c79c39ad8..5fc8c4128cb5 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -823,8 +823,9 @@ out:
type[0] = ' ';
type[5] = 0;
if (maxlen > sizeof(v)) {
- device_printf(dev, "WARNING: cropping maxlen "
- "from %u to %lu\n", maxlen, sizeof(v));
+ device_printf(dev,
+ "WARNING: cropping maxlen from %d to %zu\n",
+ maxlen, sizeof(v));
maxlen = sizeof(v);
}
for (i = 0; i < sizeof(v); i++) {