Use %zu for size_t.
Fix printf format string (again) Pointed out by: bde, ed
This commit is contained in:
parent
63e1d3df27
commit
f17bca8261
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user