mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
AK: Remove custom %b format string specifier
This was a non-standard specifier alias for %02x. This patch replaces all uses of it with new-style formatting functions instead.
This commit is contained in:
parent
89d3b09638
commit
cb2c8f71f4
12 changed files with 27 additions and 28 deletions
|
@ -390,10 +390,6 @@ struct PrintfImpl {
|
|||
{
|
||||
return print_hex(m_putch, m_bufptr, NextArgument<int>()(ap), false, state.alternate_form, false, true, 4);
|
||||
}
|
||||
ALWAYS_INLINE int format_b(const ModifierState& state, ArgumentListRefT ap) const
|
||||
{
|
||||
return print_hex(m_putch, m_bufptr, NextArgument<int>()(ap), false, state.alternate_form, false, true, 2);
|
||||
}
|
||||
ALWAYS_INLINE int format_c(const ModifierState& state, ArgumentListRefT ap) const
|
||||
{
|
||||
char c = NextArgument<int>()(ap);
|
||||
|
@ -502,7 +498,6 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm
|
|||
PRINTF_IMPL_DELEGATE_TO_IMPL(P);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(Q);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(X);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(b);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(c);
|
||||
PRINTF_IMPL_DELEGATE_TO_IMPL(d);
|
||||
#ifndef KERNEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue