1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 11:42:09 +00:00

util: sprintf: Fix pointer printing

This commit is contained in:
CTCaer 2020-08-15 12:16:25 +03:00
parent 1111125aab
commit 0652d6b3f1

View file

@ -65,11 +65,6 @@ static void _s_putn(u32 v, int base, char fill, int fcnt)
_s_puts(p);
}
static void _s_putp(u32 *v, int base, char fill, int fcnt)
{
_s_putn(*v, base, fill, fcnt);
}
void s_printf(char *out_buf, const char *fmt, ...)
{
va_list ap;
@ -114,8 +109,6 @@ void s_printf(char *out_buf, const char *fmt, ...)
break;
case 'p':
case 'P':
_s_putp(va_arg(ap, u32*), 16, fill, fcnt);
break;
case 'x':
case 'X':
_s_putn(va_arg(ap, u32), 16, fill, fcnt);