summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 56d6de4c..65acd2ca 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1189,7 +1189,7 @@ c_unparser::emit_module_init ()
o->newline() << "if (sizeof (struct context) <= 131072)";
o->newline(1) << "contexts = alloc_percpu (struct context);";
o->newline(-1) << "if (contexts == NULL) {";
- o->newline(1) << "_stp_error (\"percpu context (size %lu) allocation failed\", sizeof (struct context));";
+ o->newline(1) << "_stp_error (\"percpu context (size %lu) allocation failed\", (unsigned long) sizeof (struct context));";
o->newline() << "rc = -ENOMEM;";
o->newline() << "goto out;";
o->newline(-1) << "}";