better verbose display
This commit is contained in:
parent
2024a1b342
commit
faca30264b
14
serial/t.c
14
serial/t.c
@ -35,6 +35,13 @@ for (count=0; count<iters; count++) {
|
||||
count, iters, foo); */
|
||||
fprintf(stderr, "%s\n", ligne);
|
||||
}
|
||||
//
|
||||
if (verbosity > 1)
|
||||
{
|
||||
p_tms = localtime(&temps);
|
||||
(void)strftime(ligne, 19, "%H:%M:%S", p_tms);
|
||||
fprintf(stderr, "%6d %s\n", count, ligne);
|
||||
}
|
||||
foo = parse4values(ligne, 'T', datas);
|
||||
//
|
||||
if (foo >= 0) {
|
||||
@ -47,13 +54,6 @@ for (count=0; count<iters; count++) {
|
||||
else {
|
||||
fprintf(stderr, "%s: parse -> %d\n", __func__, foo);
|
||||
}
|
||||
//
|
||||
if (verbosity > 1)
|
||||
{
|
||||
p_tms = localtime(&temps);
|
||||
(void)strftime(ligne, 19, "%H:%M:%S", p_tms);
|
||||
fprintf(stderr, "\t%s\n", ligne);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user