Skip to content

Commit

Permalink
Address issue mit-pdos#166 in xv6-riscv.
Browse files Browse the repository at this point in the history
  • Loading branch information
calmsacibis995 committed Mar 26, 2024
1 parent d3fe232 commit a4c0526
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ printf(char *fmt, ...)
continue;
}
c = fmt[++i] & 0xff;
if(c == 0)
if(c == 0) {
consputc('%');
break;
}
switch(c){
case 'd':
printint(va_arg(ap, int), 10, 1);
Expand Down

0 comments on commit a4c0526

Please sign in to comment.