Fix: lttng: truncated addresses and offsets on 32-bit builds
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index 4395c182b42db5f528dda42f65de46e48984304d..c1926b4d61d7bd7a145fd5a3c678c627abe35032 100644 (file)
@@ -355,7 +355,7 @@ static int parse_kernel_probe_opts(const char *source,
                        PERROR("Failed to copy kernel probe location symbol name.");
                        goto error;
                }
-               offset = strtoul(s_hex, NULL, 0);
+               offset = strtoull(s_hex, NULL, 0);
 
                *location = lttng_kernel_probe_location_symbol_create(
                                symbol_name, offset);
@@ -401,7 +401,7 @@ static int parse_kernel_probe_opts(const char *source,
                        goto error;
                }
 
-               address = strtoul(s_hex, NULL, 0);
+               address = strtoull(s_hex, NULL, 0);
                *location = lttng_kernel_probe_location_address_create(address);
                if (!*location) {
                        ERR("Failed to create symbol kernel probe location.");
This page took 0.024166 seconds and 4 git commands to generate.