confile_utils: cleanup strprint()

parent d21c028a
...@@ -15,10 +15,8 @@ ...@@ -15,10 +15,8 @@
len = snprintf(str, inlen, ##__VA_ARGS__); \ len = snprintf(str, inlen, ##__VA_ARGS__); \
else \ else \
len = snprintf((char *){""}, 0, ##__VA_ARGS__); \ len = snprintf((char *){""}, 0, ##__VA_ARGS__); \
if (len < 0) { \ if (len < 0) \
SYSERROR("failed to create string"); \ return log_error_errno(-EIO, EIO, "failed to create string"); \
return -1; \
}; \
fulllen += len; \ fulllen += len; \
if (inlen > 0) { \ if (inlen > 0) { \
if (str) \ 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