From c4dfae1d3cf364cc1388d1536f87b3cb5bcd1e82 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 19 Nov 2000 13:29:43 +0000 Subject: [PATCH] Format string error in warn() --- usr.sbin/acpi/amldb/region.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/acpi/amldb/region.c b/usr.sbin/acpi/amldb/region.c index 4763862705d8..280a0aa23e7d 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)) {