You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Charlie Black (JIRA)" <ji...@apache.org> on 2019/01/08 06:09:00 UTC
[jira] [Closed] (GEODE-2499) Replace snprintf with
[ https://issues.apache.org/jira/browse/GEODE-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charlie Black closed GEODE-2499.
--------------------------------
The team is currently updating to windows VS2017 and sprintf is no longer an issue. Closing as not a problem.
> Replace snprintf with <sstream>
> --------------------------------
>
> Key: GEODE-2499
> URL: https://issues.apache.org/jira/browse/GEODE-2499
> Project: Geode
> Issue Type: Task
> Components: native client
> Reporter: Michael Martell
> Priority: Major
>
> Using snprintf on Windows has problems. These can be avoided by switching to newer <sstream> construct as below. This task is to replace snprintf everywhere in the code (100 or so occurances).
> Instead of:
> char exMsg[256];
> std::snprintf(exMsg, 255,
> "TcrMessageHelper::readChunkPartHeader: "
> "%s: part is not object",
> methodName);
> LOGDEBUG("%s ", exMsg);
> use:
> std::stringstream s;
> s << "TcrMessageHelper::readChunkPartHeader: " << methodName << ": part is not object\n";
> LOGDEBUG("%s ", s.str().c_str());
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)