summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/transport/ChangeLog5
-rw-r--r--runtime/transport/symbols.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog
index 54a3c282..70b21816 100644
--- a/runtime/transport/ChangeLog
+++ b/runtime/transport/ChangeLog
@@ -1,8 +1,11 @@
2006-11-02 Martin Hunt <hunt@redhat.com>
+ * symbols.c (_stp_do_module): Fix error message.
+
+2006-11-02 Martin Hunt <hunt@redhat.com>
* symbols.c: New file. Get the STP_SYMBOLS and STP_MODULE
messages, allocate memory and store the data.
-
+
* procfs.c (_stp_proc_write_cmd): When STP_SYMBOLS or STP_MODULE
request is received, call the appropriate functions.
diff --git a/runtime/transport/symbols.c b/runtime/transport/symbols.c
index e583103f..794e7391 100644
--- a/runtime/transport/symbols.c
+++ b/runtime/transport/symbols.c
@@ -348,7 +348,7 @@ static int _stp_do_module(const char __user *buf, int count)
int i;
if (count < sizeof(tmpmod)) {
- printk("_stp_do_modules: expected %ld and got %d\n", sizeof(tmpmod), count);
+ printk("_stp_do_modules: expected %d and got %d\n", (int)sizeof(tmpmod), count);
return -EFAULT;
}
if (copy_from_user ((char *)&tmpmod, buf, sizeof(tmpmod)))