git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/virtio: unmap PCI device in secondary process
[dpdk.git]
/
drivers
/
event
/
opdl
/
opdl_evdev_xstats.c
diff --git
a/drivers/event/opdl/opdl_evdev_xstats.c
b/drivers/event/opdl/opdl_evdev_xstats.c
index
70b84d9
..
27b3d88
100644
(file)
--- a/
drivers/event/opdl/opdl_evdev_xstats.c
+++ b/
drivers/event/opdl/opdl_evdev_xstats.c
@@
-1,6
+1,5
@@
-/*-
- * SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2010-2014 Intel Corporation
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2017 Intel Corporation
*/
#include "opdl_evdev.h"
*/
#include "opdl_evdev.h"
@@
-33,10
+32,9
@@
opdl_xstats_init(struct rte_eventdev *dev)
uint32_t index = (i * max_num_port_xstat) + j;
/* Name */
uint32_t index = (i * max_num_port_xstat) + j;
/* Name */
- sprintf(device->port_xstat[index].stat.name,
- "port_%02u_%s",
- i,
- port_xstat_str[j]);
+ snprintf(device->port_xstat[index].stat.name,
+ sizeof(device->port_xstat[index].stat.name),
+ "port_%02u_%s", i, port_xstat_str[j]);
/* ID */
device->port_xstat[index].id = index;
/* ID */
device->port_xstat[index].id = index;