summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-03-18 20:59:59 +0000
committerhunt <hunt>2007-03-18 20:59:59 +0000
commitc3e51a48f159e71048cea229bf277a9955c74ef3 (patch)
tree632ac21681f5afda26733aaa6d06b4af8acf77b3 /runtime/sym.c
parent0c36452cc313a0966b7c9e2dfd69a1d0dbcaa00b (diff)
downloadsystemtap-steved-c3e51a48f159e71048cea229bf277a9955c74ef3.tar.gz
systemtap-steved-c3e51a48f159e71048cea229bf277a9955c74ef3.tar.xz
systemtap-steved-c3e51a48f159e71048cea229bf277a9955c74ef3.zip
2007-03-18 Martin Hunt <hunt@redhat.com>
* stack.c, string.c, sym.c, transport/symbols.c: Fix some signed vs unsigned comparison warnings.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index 1e9de765..1a18f95b 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -25,7 +25,7 @@ static unsigned long _stp_module_relocate (const char *module, const char *secti
static struct _stp_symbol *last_sec;
unsigned long flags;
int i,j;
-
+ printk("_stp_relocate_module: %s, %s, %lx\n", module, section, offset);
STP_LOCK_MODULES;
if (! module || _stp_num_modules == 0) {
STP_UNLOCK_MODULES;
@@ -44,7 +44,7 @@ static unsigned long _stp_module_relocate (const char *module, const char *secti
last = _stp_modules[i];
if (strcmp(module, last->name))
continue;
- for (j = 0; j < last->num_sections; j++) {
+ for (j = 0; j < (int)last->num_sections; j++) {
last_sec = &last->sections[j];
if (!strcmp (section, last_sec->symbol)) {
STP_UNLOCK_MODULES;