diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-02-23 18:50:12 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-03 16:19:10 +0200 |
commit | df6197c8b93bd686cfc25e72890c28070b22f195 (patch) | |
tree | 20f0b8dda0c4e88dd6f8266b10431fbde2125ff4 /mysys/my_addr_resolve.c | |
parent | 606e21867c0f5765f61efd2478c9f12cf33da71e (diff) | |
download | mariadb-git-df6197c8b93bd686cfc25e72890c28070b22f195.tar.gz |
compiler warning
warning: format '%p' expects argument of type 'void *', but argument 4 has type 'long int'
Diffstat (limited to 'mysys/my_addr_resolve.c')
-rw-r--r-- | mysys/my_addr_resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_addr_resolve.c b/mysys/my_addr_resolve.c index f831ad5121f..02f71fd72bd 100644 --- a/mysys/my_addr_resolve.c +++ b/mysys/my_addr_resolve.c @@ -204,7 +204,7 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc) strnmov(addr2line_binary, info.dli_fname, sizeof(addr2line_binary)); } offset = info.dli_fbase; - len= my_snprintf(input, sizeof(input), "%p\n", ptr - offset); + len= my_snprintf(input, sizeof(input), "%08x\n", (ulonglong)(ptr - offset)); if (write(in[1], input, len) <= 0) return 1; if (read(out[0], output, sizeof(output)) <= 0) |