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/typhoon/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/typhoon/build.c')
-rw-r--r-- | sys/dev/microcode/typhoon/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/microcode/typhoon/build.c b/sys/dev/microcode/typhoon/build.c index 0e1f83b17b3..5801194068a 100644 --- a/sys/dev/microcode/typhoon/build.c +++ b/sys/dev/microcode/typhoon/build.c @@ -1,4 +1,4 @@ -/* $OpenBSD: build.c,v 1.2 2005/05/17 18:48:52 jason Exp $ */ +/* $OpenBSD: build.c,v 1.3 2016/12/18 18:28:39 krw Exp $ */ /* * Copyright (c) 2004 Theo de Raadt <deraadt@openbsd.org> @@ -42,7 +42,7 @@ main(int argc, char *argv[]) int fd; ssize_t rlen; - printf("creating %s length %d\n", FILENAME, sizeof tc990image); + printf("creating %s length %zu\n", FILENAME, sizeof tc990image); fd = open(FILENAME, O_WRONLY|O_CREAT|O_TRUNC, 0644); if (fd == -1) err(1, "%s", FILENAME); |