Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/fdt First arg of cpu_setmodel needs to be a format s...



details:   https://anonhg.NetBSD.org/src/rev/c5137a9aeeeb
branches:  trunk
changeset: 744246:c5137a9aeeeb
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 28 08:09:19 2020 +0000

description:
First arg of cpu_setmodel needs to be a format string - fix the llvm build.
>From maxv.

diffstat:

 sys/dev/fdt/fdtbus.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r f2fb01c69f7e -r c5137a9aeeeb sys/dev/fdt/fdtbus.c
--- a/sys/dev/fdt/fdtbus.c      Tue Jan 28 07:47:26 2020 +0000
+++ b/sys/dev/fdt/fdtbus.c      Tue Jan 28 08:09:19 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdtbus.c,v 1.31 2020/01/09 16:23:41 martin Exp $ */
+/* $NetBSD: fdtbus.c,v 1.32 2020/01/28 08:09:19 martin Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdtbus.c,v 1.31 2020/01/09 16:23:41 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdtbus.c,v 1.32 2020/01/28 08:09:19 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -145,9 +145,9 @@
        /* Set hw.model if available */
        model = fdtbus_get_string(phandle, "compatible");
        if (model)
-               cpu_setmodel(model);
+               cpu_setmodel("%s", model);
        else if (descr)
-               cpu_setmodel(descr);
+               cpu_setmodel("%s", descr);
 
        /* Scan devices */
        fdt_rescan(self, NULL, NULL);



Home | Main Index | Thread Index | Old Index