diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-15 13:41:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-15 13:48:57 +0100 |
commit | fa54ef695dfcfeb9d29ff7832414b942f33aec6f (patch) | |
tree | 96a441fd0de9181fc33d124f51e5902863557254 /src/libutil | |
parent | d814a76a7ca4f9f0a9217d471f565a4d5430fdfc (diff) | |
download | rspamd-fa54ef695dfcfeb9d29ff7832414b942f33aec6f.tar.gz rspamd-fa54ef695dfcfeb9d29ff7832414b942f33aec6f.zip |
[Fix] Fix logging format string
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/map.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index e452bdd2c..970a7d1d7 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -696,14 +696,14 @@ read_map_file (struct rspamd_map *map, struct file_map_data *data, } ZSTD_freeDStream (zstream); - msg_info_map ("read map data from %s (%z bytes compressed, " + msg_info_map ("%s: read map data, %z bytes compressed, " "%z uncompressed)", data->filename, len, zout.pos); map->read_callback (out, zout.pos, &periodic->cbdata, TRUE); g_free (out); } else { - msg_info_map ("read map data from %s (%z bytes)", data->filename, + msg_info_map ("%s: read map dat, %z bytes", data->filename, len); map->read_callback (bytes, len, &periodic->cbdata, TRUE); } @@ -780,15 +780,16 @@ read_map_static (struct rspamd_map *map, struct static_map_data *data, } ZSTD_freeDStream (zstream); - msg_info_map ("%s: read map data from static memory (%z bytes compressed, " - "%z uncompressed)", map->name, + msg_info_map ("%s: read map data, %z bytes compressed, " + "%z uncompressed)", + map->name, len, zout.pos); map->read_callback (out, zout.pos, &periodic->cbdata, TRUE); g_free (out); } else { - msg_info_map ("%s: read map data from static memory (%z bytes)", - len, map->name); + msg_info_map ("%s: read map data, %z bytes", + map->name, len); map->read_callback (bytes, len, &periodic->cbdata, TRUE); } } |