diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-23 02:59:44 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-24 16:37:24 -0700 |
commit | f6659f1c764ad5d3d64743567914608ec3ed8b06 (patch) | |
tree | 3b54d16b3dfbfb535cce587e76ed2cf1a9bf1710 /pk/pk.h | |
parent | a79f62f72a897f9eafea1b41d98e1367dd413d02 (diff) | |
download | riscv-pk-f6659f1c764ad5d3d64743567914608ec3ed8b06.zip riscv-pk-f6659f1c764ad5d3d64743567914608ec3ed8b06.tar.gz riscv-pk-f6659f1c764ad5d3d64743567914608ec3ed8b06.tar.bz2 |
Make printk safer and use less stack
Diffstat (limited to 'pk/pk.h')
-rw-r--r-- | pk/pk.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ extern uint32_t num_harts; struct mainvars* parse_args(struct mainvars*); void printk(const char* s, ...); -void sprintk(char* out, const char* s, ...); +int snprintf(char* out, size_t n, const char* s, ...); void init_tf(trapframe_t*, long pc, long sp, int user64); void pop_tf(trapframe_t*) __attribute__((noreturn)); void dump_tf(trapframe_t*); |