From 9f15fb6ec3ccfb40afd5743252a1c76f9c9692f4 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sat, 17 Nov 2007 23:17:05 +0000 Subject: [PATCH] Fix a compiler warning by using a printf format matching the variable type. --- usr.sbin/sa/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/sa/db.c b/usr.sbin/sa/db.c index d31cd7c1cbd1..c4f83d17a6a8 100644 --- a/usr.sbin/sa/db.c +++ b/usr.sbin/sa/db.c @@ -89,7 +89,7 @@ db_copy_in(DB **mdb, const char *dbname, const char *uname, BTREEINFO *bti, goto closeout; } else if (rv == 0) { /* It's there; verify version. */ if (data.size != sizeof(version)) { - warnx("invalid version size %d in %s", + warnx("invalid version size %zd in %s", data.size, uname); error = -1; goto closeout;