string: add spdk_ prefix
sprintf_alloc() -> spdk_sprintf_alloc() Change-Id: I24970baa37615633572d132abe3e57d0889f1a48 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
8cb09df68e
commit
40c591eac8
@ -324,7 +324,7 @@ init(void)
|
||||
{
|
||||
char *core_mask_conf;
|
||||
|
||||
core_mask_conf = sprintf_alloc("-c %s", g_user_config.core_mask);
|
||||
core_mask_conf = spdk_sprintf_alloc("-c %s", g_user_config.core_mask);
|
||||
if (!core_mask_conf) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -390,7 +390,7 @@ init(void)
|
||||
{
|
||||
char *core_mask_conf;
|
||||
|
||||
core_mask_conf = sprintf_alloc("-c %s", g_user_config.core_mask);
|
||||
core_mask_conf = spdk_sprintf_alloc("-c %s", g_user_config.core_mask);
|
||||
if (!core_mask_conf) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -970,9 +970,9 @@ int main(int argc, char **argv)
|
||||
return rc;
|
||||
}
|
||||
|
||||
ealargs[1] = sprintf_alloc("-c %s", g_core_mask ? g_core_mask : "0x1");
|
||||
ealargs[1] = spdk_sprintf_alloc("-c %s", g_core_mask ? g_core_mask : "0x1");
|
||||
if (ealargs[1] == NULL) {
|
||||
perror("ealargs sprintf_alloc");
|
||||
perror("ealargs spdk_sprintf_alloc");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,6 @@
|
||||
* which should be passed to free() when no longer needed,
|
||||
* or NULL on failure.
|
||||
*/
|
||||
char *sprintf_alloc(const char *format, ...) __attribute__((format(printf, 1, 2)));
|
||||
char *spdk_sprintf_alloc(const char *format, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
#endif
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include "spdk/string.h"
|
||||
|
||||
char *
|
||||
sprintf_alloc(const char *format, ...)
|
||||
spdk_sprintf_alloc(const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
char *buf;
|
||||
|
Loading…
Reference in New Issue
Block a user