From: Vsevolod Stakhov Date: Mon, 15 May 2017 12:41:36 +0000 (+0100) Subject: [Fix] Fix logging format string X-Git-Tag: 1.6.0~206 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa54ef695dfcfeb9d29ff7832414b942f33aec6f;p=rspamd.git [Fix] Fix logging format string --- 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); } }