diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-10-07 20:39:22 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-10 05:47:42 +0000 |
commit | 21c6b3e5ab47b615f0b18a27ce74285490f43a7a (patch) | |
tree | 04f265a97c4df0ab550aa69497cd31689bd882ab /xlators/debug | |
parent | eb5382f9475900ec95cfd52278f46553dbde18a6 (diff) |
libglusterfs/src/logging.c: reduce the use of strings
I did not see a good reason to copy the temp strings str1 and str2
into msg string, and just used str1 (sprintf'ed str2 into it first).
Hope it makes logging somewhat faster, but I also hope there's more
room for improvement for faster logging.
Renamed str1 to logline and str2 to msg for better readability.
Also, remove dead assignment in _gf_msg() (clang complained).
Compile-tested only!
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Change-Id: I19457d705c0b043937d96a4db35d087bb8e9b35a
Diffstat (limited to 'xlators/debug')
0 files changed, 0 insertions, 0 deletions