diff --git a/src/dataArgs.c b/src/dataArgs.c index 3cf8016d1..c95fd4bbf 100644 --- a/src/dataArgs.c +++ b/src/dataArgs.c @@ -532,6 +532,8 @@ char* strsFormatArg(Args* out_buffs, char* fmt, Arg* arg) { if (type == ARG_TYPE_POINTER) { fmt = strsReplace(&buffs, fmt, sym, "%p"); break; + }else{ + fmt = strsReplace(&buffs, fmt, sym, "%s"); } } } @@ -553,6 +555,12 @@ char* strsFormatArg(Args* out_buffs, char* fmt, Arg* arg) { if (ARG_TYPE_NONE == type) { res = strsFormat(&buffs, PIKA_SPRINTF_BUFF_SIZE, fmt, "None"); goto __exit; + }else{ + Arg* arg_str = arg_toStrArg(arg); + if (NULL != arg_str){ + res = strsFormat(&buffs, PIKA_SPRINTF_BUFF_SIZE, fmt, arg_getStr(arg_str)); + arg_deinit(arg_str); + } } __exit: if (NULL != res) {