projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: replace ssnprintf with snprintf
[collectd.git]
/
src
/
netlink.c
diff --git
a/src/netlink.c
b/src/netlink.c
index
3cc1084
..
9d84956
100644
(file)
--- a/
src/netlink.c
+++ b/
src/netlink.c
@@
-495,7
+495,7
@@
static int qos_filter_cb(const struct nlmsghdr *nlh, void *args) {
if (strcmp(tc_type, "filter") == 0)
numberic_id = tm->tcm_parent;
if (strcmp(tc_type, "filter") == 0)
numberic_id = tm->tcm_parent;
- s
s
nprintf(tc_inst, sizeof(tc_inst), "%s-%x:%x", kind, numberic_id >> 16,
+ snprintf(tc_inst, sizeof(tc_inst), "%s-%x:%x", kind, numberic_id >> 16,
numberic_id & 0x0000FFFF);
}
numberic_id & 0x0000FFFF);
}
@@
-527,7
+527,7
@@
static int qos_filter_cb(const struct nlmsghdr *nlh, void *args) {
stats_submitted = 1;
stats_submitted = 1;
- s
s
nprintf(type_instance, sizeof(type_instance), "%s-%s", tc_type,
+ snprintf(type_instance, sizeof(type_instance), "%s-%s", tc_type,
tc_inst);
if (q_stats.bs != NULL) {
tc_inst);
if (q_stats.bs != NULL) {
@@
-560,7
+560,7
@@
static int qos_filter_cb(const struct nlmsghdr *nlh, void *args) {
if (!stats_submitted && ts != NULL) {
char type_instance[DATA_MAX_NAME_LEN];
if (!stats_submitted && ts != NULL) {
char type_instance[DATA_MAX_NAME_LEN];
- s
s
nprintf(type_instance, sizeof(type_instance), "%s-%s", tc_type,
+ snprintf(type_instance, sizeof(type_instance), "%s-%s", tc_type,
tc_inst);
submit_one(dev, "ipt_bytes", type_instance, ts->bytes);
tc_inst);
submit_one(dev, "ipt_bytes", type_instance, ts->bytes);