Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cobalt/pci kill sprintf
details: https://anonhg.NetBSD.org/src/rev/0ff6183536a5
branches: trunk
changeset: 328098:0ff6183536a5
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 26 15:47:00 2014 +0000
description:
kill sprintf
diffstat:
sys/arch/cobalt/pci/pci_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r a1ffba4902cf -r 0ff6183536a5 sys/arch/cobalt/pci/pci_machdep.c
--- a/sys/arch/cobalt/pci/pci_machdep.c Wed Mar 26 11:59:05 2014 +0000
+++ b/sys/arch/cobalt/pci/pci_machdep.c Wed Mar 26 15:47:00 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.c,v 1.33 2012/10/27 17:17:44 chs Exp $ */
+/* $NetBSD: pci_machdep.c,v 1.34 2014/03/26 15:47:00 christos Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.33 2012/10/27 17:17:44 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.34 2014/03/26 15:47:00 christos Exp $");
#define _COBALT_BUS_DMA_PRIVATE
@@ -188,9 +188,9 @@
static char irqstr[8];
if (ih >= NICU_INT)
- sprintf(irqstr, "level %d", ih - NICU_INT);
+ snprintf(irqstr, sizeof(irqstr), "level %d", ih - NICU_INT);
else
- sprintf(irqstr, "irq %d", ih);
+ snprintf(irqstr, sizeof(irqstr), "irq %d", ih);
return irqstr;
}
Home |
Main Index |
Thread Index |
Old Index