Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/stand/boot2440 Use format strings.
details: https://anonhg.NetBSD.org/src/rev/0bdf13507b32
branches: trunk
changeset: 325035:0bdf13507b32
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Dec 01 02:53:07 2013 +0000
description:
Use format strings.
diffstat:
sys/arch/evbarm/stand/boot2440/netif.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 737bfb713038 -r 0bdf13507b32 sys/arch/evbarm/stand/boot2440/netif.c
--- a/sys/arch/evbarm/stand/boot2440/netif.c Sun Dec 01 02:52:53 2013 +0000
+++ b/sys/arch/evbarm/stand/boot2440/netif.c Sun Dec 01 02:53:07 2013 +0000
@@ -79,10 +79,10 @@
dv = &vnifdv[n];
if ((*dv->match)(tag, macaddr) > 0) {
nifmatch[n] = 1;
- snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), dv->name);
+ snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), "%s", dv->name);
bi_rdev.cookie = tag;
- snprintf(bi_net.devname, sizeof(bi_net.devname), dv->name);
+ snprintf(bi_net.devname, sizeof(bi_net.devname), "%s", dv->name);
bi_net.cookie = tag;
memcpy(bi_net.mac_address, macaddr, sizeof(bi_net.mac_address));
break;
@@ -113,10 +113,10 @@
s->io_netif = dv;
memcpy(s->myea, enaddr, sizeof(s->myea));
- snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), dv->name);
+ snprintf(bi_rdev.devname, sizeof(bi_rdev.devname), "%s", dv->name);
bi_rdev.cookie = tag;
- snprintf(bi_net.devname, sizeof(bi_net.devname), dv->name);
+ snprintf(bi_net.devname, sizeof(bi_net.devname), "%s", dv->name);
bi_net.cookie = tag;
memcpy(bi_net.mac_address, enaddr, sizeof(bi_net.mac_address));
return 1;
Home |
Main Index |
Thread Index |
Old Index