sys/tools/fw_stub.awk: Change printf to kprintf as this is kernel code.
authorSascha Wildner <saw@online.de>
Sun, 18 Jul 2010 16:04:13 +0000 (18:04 +0200)
committerSascha Wildner <saw@online.de>
Sun, 18 Jul 2010 16:04:13 +0000 (18:04 +0200)
Submitted-by: Johannes Hofmann <johannes.hofmann@gmx.de>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1794>

sys/tools/fw_stub.awk

index 332b80f..bedc2a6 100644 (file)
@@ -152,8 +152,8 @@ if (opt_l) {
                printc("\
                TUNABLE_LONG_FETCH(\"legal." opt_l ".license_ack\", &" opt_l "_license_ack);\
                if (!" opt_l "_license_ack) {\
-                       printf(\"" opt_m ": You need to read the LICENSE file in /usr/share/doc/legal/" opt_l "/.\\n\");\
-                       printf(\"" opt_m ": If you agree with the license, set legal." opt_l ".license_ack=1 in /boot/loader.conf.\\n\");\
+                       kprintf(\"" opt_m ": You need to read the LICENSE file in /usr/share/doc/legal/" opt_l "/.\\n\");\
+                       kprintf(\"" opt_m ": If you agree with the license, set legal." opt_l ".license_ack=1 in /boot/loader.conf.\\n\");\
                        return(EPERM);\
                }\n");
 }