aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-03-23 02:59:44 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-03-24 16:37:24 -0700
commitf6659f1c764ad5d3d64743567914608ec3ed8b06 (patch)
tree3b54d16b3dfbfb535cce587e76ed2cf1a9bf1710 /pk/pk.h
parenta79f62f72a897f9eafea1b41d98e1367dd413d02 (diff)
downloadriscv-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/pk.h b/pk/pk.h
index 06d68ee..d21a890 100644
--- a/pk/pk.h
+++ b/pk/pk.h
@@ -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*);