From 993abb53dc91a812eaf30811f6f23c48d69b230b Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 19 Nov 2000 13:29:43 +0000 Subject: Format string error in warn() --- usr.sbin/acpi/amldb/region.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/acpi') 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)) { -- cgit v1.1