diff options
| author | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
| commit | bbef2fbaacededb5eb9a0855d32a09e3b032f2c5 (patch) | |
| tree | 803ad37661cca887d0d2f9ba989c9e4fac0d3b4f /usr.bin/vmstat | |
| parent | 82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff) | |
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/vmstat')
| -rw-r--r-- | usr.bin/vmstat/dkstats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vmstat/dkstats.c b/usr.bin/vmstat/dkstats.c index d84e99b8df5..4bcaf1df344 100644 --- a/usr.bin/vmstat/dkstats.c +++ b/usr.bin/vmstat/dkstats.c @@ -1,4 +1,4 @@ -/* $NetBSD: dkstats.c,v 1.8 2000/06/04 16:10:17 thorpej Exp $ */ +/* $NetBSD: dkstats.c,v 1.9 2000/07/07 15:13:25 itojun Exp $ */ /* * Copyright (c) 1996 John M. Vinopal @@ -83,8 +83,8 @@ int *dk_select; char **dr_name; #define KVM_ERROR(_string) { \ - warnx((_string)); \ - errx(1, kvm_geterr(kd)); \ + warnx("%s", (_string)); \ + errx(1, "%s", kvm_geterr(kd)); \ } /* |
