confile_utils: cleanup strprint()

parent bcdeed91
......@@ -15,10 +15,8 @@
len = snprintf(str, inlen, ##__VA_ARGS__); \
else \
len = snprintf((char *){""}, 0, ##__VA_ARGS__); \
if (len < 0) { \
SYSERROR("failed to create string"); \
return -1; \
}; \
if (len < 0) \
return log_error_errno(-EIO, EIO, "failed to create string"); \
fulllen += len; \
if (inlen > 0) { \
if (str) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment