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/cxgbe: fix build with optimization=1
[dpdk.git]
/
lib
/
telemetry
/
telemetry_json.h
diff --git
a/lib/telemetry/telemetry_json.h
b/lib/telemetry/telemetry_json.h
index
ad270b9
..
db70690
100644
(file)
--- a/
lib/telemetry/telemetry_json.h
+++ b/
lib/telemetry/telemetry_json.h
@@
-9,6
+9,7
@@
#include <stdarg.h>
#include <stdio.h>
#include <rte_common.h>
#include <stdarg.h>
#include <stdio.h>
#include <rte_common.h>
+#include <rte_telemetry.h>
/**
* @file
/**
* @file
@@
-22,14
+23,14
@@
/**
* @internal
* Copies a value into a buffer if the buffer has enough available space.
/**
* @internal
* Copies a value into a buffer if the buffer has enough available space.
- * Nothing written to buffer if an overflow ocurs.
- * This function is not for use for values larger than
1k
.
+ * Nothing written to buffer if an overflow oc
c
urs.
+ * This function is not for use for values larger than
given buffer length
.
*/
__rte_format_printf(3, 4)
static inline int
__json_snprintf(char *buf, const int len, const char *format, ...)
{
*/
__rte_format_printf(3, 4)
static inline int
__json_snprintf(char *buf, const int len, const char *format, ...)
{
- char tmp[
1024
];
+ char tmp[
len
];
va_list ap;
int ret;
va_list ap;
int ret;