diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-07-02 10:46:21 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-07-02 10:46:21 +0200 |
commit | 084056f729cb4408cbeda954a5aec8ef4f01a0df (patch) | |
tree | de08234662b439d41148cfd63c4dbbc06b1eda05 /firmware/print.c | |
parent | a7f9b7fbf37eb23847d113b907ae4385ccfefa19 (diff) | |
download | picorv32-084056f729cb4408cbeda954a5aec8ef4f01a0df.tar.gz picorv32-084056f729cb4408cbeda954a5aec8ef4f01a0df.zip |
Unsigned arguments for print_dec()
Patch by Larry Doolittle
Diffstat (limited to 'firmware/print.c')
-rw-r--r-- | firmware/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/print.c b/firmware/print.c index 2aef715..b12f5a0 100644 --- a/firmware/print.c +++ b/firmware/print.c @@ -20,7 +20,7 @@ void print_str(const char *p) *((volatile uint32_t*)OUTPORT) = *(p++); } -void print_dec(int val) +void print_dec(unsigned int val) { char buffer[10]; char *p = buffer; |