diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-18 18:28:40 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-18 18:28:40 +0000 |
commit | b137578a69dfa31265779c4e4f7d30fd9ebc4b2e (patch) | |
tree | d0d012cd294619eb57e56ad3ef1a12d06c18b833 /sys/dev/microcode/bnx/build.c | |
parent | 62ac240a38c3dca6e543c007d142407ac47631c7 (diff) |
Use %zu/%d to print size_t/ssize_t. Cast recno_t (a.k.a. u_int32_t)
to (unsigned long) to match %lu formats. Makes gcc happier and
quieter.
ok deraadt@
Diffstat (limited to 'sys/dev/microcode/bnx/build.c')
-rw-r--r-- | sys/dev/microcode/bnx/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/microcode/bnx/build.c b/sys/dev/microcode/bnx/build.c index 2b8a66f936f..665b243b719 100644 --- a/sys/dev/microcode/bnx/build.c +++ b/sys/dev/microcode/bnx/build.c @@ -1,4 +1,4 @@ -/* $OpenBSD: build.c,v 1.7 2014/07/12 19:01:49 tedu Exp $ */ +/* $OpenBSD: build.c,v 1.8 2016/12/18 18:28:38 krw Exp $ */ /* * Copyright (c) 2004 Theo de Raadt <deraadt@openbsd.org> @@ -149,7 +149,7 @@ write_firmware(char *filename, void *header, size_t hlen, printf("\n"); errx(1, "%s: short write", filename); } - printf("+%d", rlen); + printf("+%zd", rlen); fflush(stdout); total += rlen; } |