mirror of https://gerrit.osmocom.org/simtrace2
stdio: Add support for %p format string (pointer address)
We actually llready had plrenty of code using %p, despite our stdio not implementing it ;) Change-Id: Iecf6c849ce5ef72a8fed9b19a18e215c61c3d09f
This commit is contained in:
parent
75a5f224c0
commit
37055b9286
|
@ -358,6 +358,7 @@ signed int vsnprintf(char *pStr, size_t length, const char *pFormat, va_list ap)
|
|||
case 'i': num = PutSignedInt(pStr, fill, width, va_arg(ap, signed int)); break;
|
||||
case 'u': num = PutUnsignedInt(pStr, fill, width, va_arg(ap, unsigned int)); break;
|
||||
case 'x': num = PutHexa(pStr, fill, width, 0, va_arg(ap, unsigned int)); break;
|
||||
case 'p': num = PutHexa(pStr, fill, width, 0, va_arg(ap, unsigned long)); break;
|
||||
case 'X': num = PutHexa(pStr, fill, width, 1, va_arg(ap, unsigned int)); break;
|
||||
case 's': num = PutString(pStr, va_arg(ap, char *)); break;
|
||||
case 'c': num = PutChar(pStr, va_arg(ap, unsigned int)); break;
|
||||
|
|
Loading…
Reference in New Issue