summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorfche <fche>2007-01-29 20:52:51 +0000
committerfche <fche>2007-01-29 20:52:51 +0000
commitf38ca6783539f2c62aee59ea5dae6a92b8e99d05 (patch)
tree1bd10d5c0a18d10813d14cbd2a05137a52cdda6d /translate.cxx
parent3938f7783177ab6933a817c6ec3677ff3b40b0fc (diff)
downloadsystemtap-steved-f38ca6783539f2c62aee59ea5dae6a92b8e99d05.tar.gz
systemtap-steved-f38ca6783539f2c62aee59ea5dae6a92b8e99d05.tar.xz
systemtap-steved-f38ca6783539f2c62aee59ea5dae6a92b8e99d05.zip
2007-01-29 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (emit_module_init): Add some more type casts to printk args.
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/translate.cxx b/translate.cxx
index 2955cf62..10c59f31 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1,5 +1,5 @@
// translation pass
-// Copyright (C) 2005, 2006, 2007 Red Hat Inc.
+// Copyright (C) 2005-2007 Red Hat Inc.
// Copyright (C) 2005, 2006 Intel Corporation
//
// This file is part of systemtap, and is free software. You can
@@ -1105,7 +1105,7 @@ c_unparser::emit_module_init ()
o->newline() << "printk (KERN_DEBUG \"%s: "
<< "systemtap: " << VERSION
<< ", base: %p"
- << ", memory: %lu+%lu+%u+%u+%u data+text+ctx+io+glob"
+ << ", memory: %lu+%lu+%lu+%lu+%lu data+text+ctx+io+glob"
<< ", probes: " << session->probes.size()
<< "\\n\""
// printk arguments
@@ -1113,9 +1113,9 @@ c_unparser::emit_module_init ()
<< ", THIS_MODULE->module_core"
<< ", (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)"
<< ", (unsigned long) THIS_MODULE->core_text_size"
- << ", num_online_cpus() * sizeof(struct context)"
- << ", _stp_allocated_net_memory"
- << ", _stp_allocated_memory"
+ << ", (unsigned long) (num_online_cpus() * sizeof(struct context))"
+ << ", (unsigned long) _stp_allocated_net_memory"
+ << ", (unsigned long) _stp_allocated_memory"
<< ");";
// All registrations were successful. Consider the system started.