diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-05-25 23:15:05 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-05-25 23:15:05 +0000 |
| commit | 096c40e3f39c59522fb06f159c4e9f1c31abfc25 (patch) | |
| tree | 1e5884c0f5e38c4c2cbc80b7ca1f91757b44ef04 | |
| parent | 5a3c3d039a789ae7258e9a1aaad070c39a675e07 (diff) | |
Notes
| -rw-r--r-- | usr.bin/systat/extern.h | 2 | ||||
| -rw-r--r-- | usr.bin/systat/swap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/extern.h b/usr.bin/systat/extern.h index b3a01290522cc..81b660a7d0d87 100644 --- a/usr.bin/systat/extern.h +++ b/usr.bin/systat/extern.h @@ -90,7 +90,7 @@ void die __P((int)); void display __P((int)); int dkinit __P((void)); int dkcmd __P((char *, char *)); -void error __P((const char *fmt, ...)); +void error __P((const char *fmt, ...)) __printflike(1, 2); void fetchicmp __P((void)); void fetchip __P((void)); void fetchiostat __P((void)); diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c index f4b3267ed501d..18aa0324ecb67 100644 --- a/usr.bin/systat/swap.c +++ b/usr.bin/systat/swap.c @@ -101,7 +101,7 @@ initswap() if (kvm_getswapinfo(kd, &dummy, 1, 0) < 0) { snprintf(msgbuf, sizeof(msgbuf), "systat: kvm_getswapinfo failed"); - error(msgbuf); + error("%s", msgbuf); return (0); } |
