Skip to content

Commit

Permalink
devio: support 32 bit values in kprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
veremenko-y committed Nov 7, 2024
1 parent 9afcb63 commit 0820096
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Kernel/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,13 @@ void kputhexbyte(unsigned int v)
void kputunum(unsigned int v)
{
unsigned char n = 0;
#ifdef CONFIG_32BIT
putdigit((v / 1000000000) % 10, &n);
putdigit((v / 100000000) % 10, &n);
putdigit((v / 10000000) % 10, &n);
putdigit((v / 1000000) % 10, &n);
putdigit((v / 100000) % 10, &n);
#endif
putdigit((v / 10000) % 10, &n);
putdigit((v / 1000) % 10, &n);
putdigit((v / 100) % 10, &n);
Expand Down

0 comments on commit 0820096

Please sign in to comment.