A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Method does not exist.
[simgrid.git]
/
src
/
instr
/
instr_config.cpp
diff --git
a/src/instr/instr_config.cpp
b/src/instr/instr_config.cpp
index
eb86e1d
..
546c055
100644
(file)
--- a/
src/instr/instr_config.cpp
+++ b/
src/instr/instr_config.cpp
@@
-356,11
+356,10
@@
void TRACE_global_init()
static void print_line (const char *option, const char *desc, const char *longdesc, int detailed)
{
static void print_line (const char *option, const char *desc, const char *longdesc, int detailed)
{
- char str[INSTR_DEFAULT_STR_SIZE];
- snprintf (str, INSTR_DEFAULT_STR_SIZE, "--cfg=%s ", option);
+ std::string str = std::string("--cfg=") + option + " ";
- int len = str
len (str
);
- printf
("%s%*.*s %s\n", str, 30-len, 30-
len, "", desc);
+ int len = str
.size(
);
+ printf
("%s%*.*s %s\n", str.c_str(), 30 - len, 30 -
len, "", desc);
if (longdesc != nullptr && detailed){
printf ("%s\n\n", longdesc);
}
if (longdesc != nullptr && detailed){
printf ("%s\n\n", longdesc);
}