From 03c4c94622147c6bd0086a3d47069064e8c4f01e Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 10 Aug 2022 03:18:19 +0000 Subject: [PATCH] match other archs use %s for version printf --- sys/arch/alpha/alpha/machdep.c | 4 ++-- sys/arch/hppa/hppa/machdep.c | 4 ++-- sys/arch/luna88k/luna88k/machdep.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index d1f7709a84a..d99e388c375 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.196 2021/10/06 15:46:03 claudio Exp $ */ +/* $OpenBSD: machdep.c,v 1.197 2022/08/10 03:18:19 jsg Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -801,7 +801,7 @@ cpu_startup() /* * Good {morning,afternoon,evening,night}. */ - printf(version); + printf("%s", version); identifycpu(); printf("real mem = %lu (%luMB)\n", ptoa((psize_t)totalphysmem), ptoa((psize_t)totalphysmem) / 1024 / 1024); diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 3536d5dcf19..d0ac0010e5a 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.265 2021/10/06 15:46:03 claudio Exp $ */ +/* $OpenBSD: machdep.c,v 1.266 2022/08/10 03:18:19 jsg Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -607,7 +607,7 @@ cpu_startup(void) * fogging the air w/ humid cries -- * WELCOME TO SUMMER! */ - printf(version); + printf("%s", version); printf("%s\n", cpu_model); printf("real mem = %lu (%luMB)\n", ptoa(physmem), diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c index b5cc7b02283..040d9542ce7 100644 --- a/sys/arch/luna88k/luna88k/machdep.c +++ b/sys/arch/luna88k/luna88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.137 2022/03/05 11:03:30 aoyama Exp $ */ +/* $OpenBSD: machdep.c,v 1.138 2022/08/10 03:18:19 jsg Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -311,7 +311,7 @@ cpu_startup() /* * Good {morning,afternoon,evening,night}. */ - printf(version); + printf("%s", version); identifycpu(); printf("real mem = %lu (%luMB)\n", ptoa(physmem), ptoa(physmem) / 1024 / 1024); -- 2.20.1