summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1999-04-24 18:50:48 +0000
committerdt <dt@FreeBSD.org>1999-04-24 18:50:48 +0000
commit3843abdc03deacf817f6459a1690b2911648a571 (patch)
treea3ed14c8eabe0ea2a5f458d0acc6ea9d1eb937d9
parent19af893d7eeec45d99bc87bc9c2cc0225a65b8b8 (diff)
downloadFreeBSD-src-3843abdc03deacf817f6459a1690b2911648a571.zip
FreeBSD-src-3843abdc03deacf817f6459a1690b2911648a571.tar.gz
Fixed printf format errors on alpha.
-rw-r--r--sys/kern/init_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 82dd788..8d9377e 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
- * $Id: init_main.c,v 1.111 1999/02/28 10:53:29 bde Exp $
+ * $Id: init_main.c,v 1.112 1999/04/20 21:15:13 des Exp $
*/
#include "opt_devfs.h"
@@ -634,7 +634,8 @@ start_init(p)
for (next = path; *next != '\0' && *next != ';'; next++)
/* nothing */ ;
if (bootverbose)
- printf("start_init: trying %.*s\n", next-path, path);
+ printf("start_init: trying %.*s\n", (int)(next - path),
+ path);
/*
* Move out the boot flag argument.
@@ -695,7 +696,8 @@ start_init(p)
if ((error = execve(p, &args)) == 0)
return;
if (error != ENOENT)
- printf("exec %.*s: error %d\n", next-path, path, error);
+ printf("exec %.*s: error %d\n", (int)(next - path),
+ path, error);
}
printf("init: not found\n");
panic("no init");
OpenPOWER on IntegriCloud