xiaoxiang781216 commented on a change in pull request #5692:
URL: https://github.com/apache/incubator-nuttx/pull/5692#discussion_r821529830
##########
File path: libs/libc/stdio/lib_libvsprintf.c
##########
@@ -1176,6 +1123,60 @@ static int vsprintf_internal(FAR struct lib_outstream_s
*stream,
break;
case 'p':
+ c = fmt_char(fmt);
+ switch (c)
+ {
+ case 'V':
+ {
+ FAR struct va_format *vaf = (FAR void *)x;
+#ifdef va_copy
+ va_list copy;
+
+ va_copy(copy, *vaf->va);
+ lib_vsprintf(stream, vaf->fmt, copy);
+ va_end(copy);
+#else
+ lib_vsprintf(stream, vaf->fmt, *vaf->va);
+#endif
+ continue;
+ }
+
+#ifdef CONFIG_ALLSYMS
+ case 'S':
+ case 's':
+ {
+ FAR const struct symtab_s *symbol;
+ FAR void *addr = (FAR void *)x;
+ size_t symbolsize;
+
+ symbol = allsyms_findbyvalue(addr, &symbolsize);
+ if (symbol)
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]