mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.58k stars 2.38k forks source link

Printf uint64 fix #177

Open eoin-cr opened 1 year ago

eoin-cr commented 1 year ago

Previously, although %l was a recognised printf parameter, it would call the printint function to print the value, thus casting the uint64 back to a regular int. This commit creates a function specifically for printing a uint64 variable using %l.

Thanks @clubby789 for the help.