mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
Display hex in uppercase
This commit is contained in:
parent
2b2b6d43ec
commit
339992a503
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ void itoa(char *buf, int base, int d)
|
|||
// Divide UD by DIVISOR until UD == 0.
|
||||
do {
|
||||
int remainder = ud % divisor;
|
||||
*p++ = (remainder < 10) ? remainder + '0' : remainder + 'a' - 10;
|
||||
*p++ = (remainder < 10) ? remainder + '0' : remainder + 'A' - 10;
|
||||
}
|
||||
while (ud /= divisor);
|
||||
|
||||
|
|
Loading…
Reference in a new issue