Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Format string annotation for strdis...



details:   https://anonhg.NetBSD.org/src/rev/f9d5ac5edd8a
branches:  trunk
changeset: 460592:f9d5ac5edd8a
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Oct 28 18:15:25 2019 +0000

description:
Format string annotation for strdisasm_printf

diffstat:

 sys/arch/aarch64/aarch64/db_disasm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 28f7bb0ef20f -r f9d5ac5edd8a sys/arch/aarch64/aarch64/db_disasm.c
--- a/sys/arch/aarch64/aarch64/db_disasm.c      Mon Oct 28 18:14:38 2019 +0000
+++ b/sys/arch/aarch64/aarch64/db_disasm.c      Mon Oct 28 18:15:25 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.6 2019/01/27 02:08:36 pgoyette Exp $ */
+/* $NetBSD: db_disasm.c,v 1.7 2019/10/28 18:15:25 joerg Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.6 2019/01/27 02:08:36 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.7 2019/10/28 18:15:25 joerg Exp $");
 
 #include <sys/param.h>
 #include <machine/db_machdep.h>
@@ -75,7 +75,7 @@
        return *(uint32_t *)address;
 }
 
-static void
+static void __printflike(1, 2)
 strdisasm_printf(const char *fmt, ...)
 {
        va_list ap;



Home | Main Index | Thread Index | Old Index