summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/kern/linux/printk.cc2
-rw-r--r--src/sim/arguments.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kern/linux/printk.cc b/src/kern/linux/printk.cc
index a19d81b08..e856e2263 100644
--- a/src/kern/linux/printk.cc
+++ b/src/kern/linux/printk.cc
@@ -169,7 +169,7 @@ Printk(stringstream &out, Arguments args)
break;
case 's': {
- const char *s = (const char *)args;
+ const char *s = (char *)args;
if (!s)
s = "<NULL>";
diff --git a/src/sim/arguments.hh b/src/sim/arguments.hh
index 5c7941562..f28f6635a 100644
--- a/src/sim/arguments.hh
+++ b/src/sim/arguments.hh
@@ -137,7 +137,7 @@ class Arguments
template <class T>
operator T *() {
T *buf = (T *)data->alloc(sizeof(T));
- CopyData(tc, buf, getArg(sizeof(T)), sizeof(T));
+ CopyOut(tc, buf, getArg(sizeof(T)), sizeof(T));
return buf;
}