summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-19 13:29:43 +0000
committerkris <kris@FreeBSD.org>2000-11-19 13:29:43 +0000
commit993abb53dc91a812eaf30811f6f23c48d69b230b (patch)
tree90686c9679d5b719cbb4ce492a33c148a14aa833 /usr.sbin
parent2ab60731dd83a9ccff2e6c866c3a627e72f4594d (diff)
downloadFreeBSD-src-993abb53dc91a812eaf30811f6f23c48d69b230b.zip
FreeBSD-src-993abb53dc91a812eaf30811f6f23c48d69b230b.tar.gz
Format string error in warn()
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/acpi/amldb/region.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/acpi/amldb/region.c b/usr.sbin/acpi/amldb/region.c
index 4763862..280a0aa 100644
--- a/usr.sbin/acpi/amldb/region.c
+++ b/usr.sbin/acpi/amldb/region.c
@@ -170,7 +170,7 @@ aml_simulation_regload(const char *dumpfile)
return;
}
if ((fp = fopen(dumpfile, "r")) == NULL) {
- warn(dumpfile);
+ warn("%s", dumpfile);
return;
}
while (fgets(buf, sizeof buf, fp) != NULL) {
@@ -494,7 +494,7 @@ aml_simulation_regdump(const char *dumpfile)
return;
}
if ((fp = fopen(dumpfile, "w")) == NULL) {
- warn(dumpfile);
+ warn("%s", dumpfile);
return;
}
while (!TAILQ_EMPTY(&RegionContentList)) {
OpenPOWER on IntegriCloud