diff options
author | fche <fche> | 2007-01-29 20:52:51 +0000 |
---|---|---|
committer | fche <fche> | 2007-01-29 20:52:51 +0000 |
commit | f38ca6783539f2c62aee59ea5dae6a92b8e99d05 (patch) | |
tree | 1bd10d5c0a18d10813d14cbd2a05137a52cdda6d | |
parent | 3938f7783177ab6933a817c6ec3677ff3b40b0fc (diff) | |
download | systemtap-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.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | translate.cxx | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,3 +1,7 @@ +2007-01-29 Frank Ch. Eigler <fche@elastic.org> + + * translate.cxx (emit_module_init): Add some more type casts to printk args. + 2007-01-29 Martin Hunt <hunt@redhat.com> * translate.cxx (emit_module_init): BZ3888. Add memory usage for the 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. |