mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-02 01:44:14 +00:00
fix some 'format not a string literal's
This commit is contained in:
parent
c1dde0f87e
commit
5d11289b4c
@ -4948,7 +4948,7 @@ retry:
|
|||||||
char buf[450];
|
char buf[450];
|
||||||
snprintf(buf, sizeof(buf), "%s: %s\n", time_now_string(), usr);
|
snprintf(buf, sizeof(buf), "%s: %s\n", time_now_string(), usr);
|
||||||
// printf is the bitcoin/util.h logger
|
// printf is the bitcoin/util.h logger
|
||||||
printf(buf);
|
printf("%s", buf);
|
||||||
//(*m_logger) << buf;
|
//(*m_logger) << buf;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -6516,7 +6516,7 @@ retry:
|
|||||||
char buf[1280];
|
char buf[1280];
|
||||||
snprintf(buf, sizeof(buf), "%s: %s\n", time_now_string(), usr);
|
snprintf(buf, sizeof(buf), "%s: %s\n", time_now_string(), usr);
|
||||||
// printf is the bitcoin/util.h logger
|
// printf is the bitcoin/util.h logger
|
||||||
printf(buf);
|
printf("%s", buf);
|
||||||
//(*m_ses.m_logger) << buf;
|
//(*m_ses.m_logger) << buf;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -8632,7 +8632,7 @@ namespace libtorrent
|
|||||||
, to_hex(info_hash().to_string()).substr(0, 6).c_str(), usr);
|
, to_hex(info_hash().to_string()).substr(0, 6).c_str(), usr);
|
||||||
//(*m_ses.m_logger) << buf;
|
//(*m_ses.m_logger) << buf;
|
||||||
// [MF]
|
// [MF]
|
||||||
printf(buf);
|
printf("%s", buf);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user