1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-20 05:11:42 +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); _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, ...) void s_printf(char *out_buf, const char *fmt, ...)
{ {
va_list ap; va_list ap;
@ -114,8 +109,6 @@ void s_printf(char *out_buf, const char *fmt, ...)
break; break;
case 'p': case 'p':
case 'P': case 'P':
_s_putp(va_arg(ap, u32*), 16, fill, fcnt);
break;
case 'x': case 'x':
case 'X': case 'X':
_s_putn(va_arg(ap, u32), 16, fill, fcnt); _s_putn(va_arg(ap, u32), 16, fill, fcnt);