diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-04-08 11:11:34 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-04-08 11:11:34 +0200 |
commit | 07cee54d6fb720d4300972aaff9300ac8028c88d (patch) | |
tree | ac00b45a6f85e574202b5531edbb152d8b61600c /runtime/sym.c | |
parent | 48cde708db9e1662047def94c2dfd7ffe28aa765 (diff) | |
download | systemtap-steved-07cee54d6fb720d4300972aaff9300ac8028c88d.tar.gz systemtap-steved-07cee54d6fb720d4300972aaff9300ac8028c88d.tar.xz systemtap-steved-07cee54d6fb720d4300972aaff9300ac8028c88d.zip |
Use _stp_snprintf in _stp_symbol_snprint.
* runtime/sym.c (_stp_symbol_snprint): Use _stp_snprintf, no _stp_printf.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r-- | runtime/sym.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index 0268f1ab..835e1b46 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -380,8 +380,8 @@ static void _stp_symbol_snprint(char *str, size_t len, unsigned long address, task); if (name) { if (add_mod && modname && *modname) - _stp_printf("%s %s+%#lx/%#lx\n", - name, modname, offset, size); + _stp_snprintf(str, len, "%s %s+%#lx/%#lx", + name, modname, offset, size); else strlcpy(str, name, len); } else |