diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-09-23 11:38:22 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-09-23 11:38:22 +0000 |
commit | d259bef0cc7735fbbd25d54280102d732ffe4de2 (patch) | |
tree | 2a505dd6ed8f0453e30ed25f2221fd913bf4163a /sys | |
parent | fd6c4f6c0e3480b976f03933b06239aa8d19648d (diff) |
Use "%s" to print the version string. Avoids a "format string is not a
string literal" warning from clang and matches what we do on amd64.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm/arm/arm32_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c index 9db0233d3fd..f2d512e497c 100644 --- a/sys/arch/arm/arm/arm32_machdep.c +++ b/sys/arch/arm/arm/arm32_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arm32_machdep.c,v 1.51 2016/09/18 14:32:54 deraadt Exp $ */ +/* $OpenBSD: arm32_machdep.c,v 1.52 2016/09/23 11:38:21 kettenis Exp $ */ /* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */ /* @@ -257,7 +257,7 @@ cpu_startup() * Identify ourselves for the msgbuf (everything printed earlier will * not be buffered). */ - printf(version); + printf("%s", version); printf("real mem = %lu (%luMB)\n", ptoa(physmem), ptoa(physmem)/1024/1024); |