Skip to content

Commit 05e3bdf

Browse files
venom1204MichaelChiricoaitap
authored
Combine DTPRINT statements for fread verbose messages (#6848)
* merged dtprints * whitespace style * Restore translation, fix whitespace * Restore translation, fix whitespace (2/2) --------- Co-authored-by: Michael Chirico <[email protected]> Co-authored-by: Ivan K <[email protected]>
1 parent 4f84d3c commit 05e3bdf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/fread.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,8 +1730,10 @@ int freadMain(freadMainArgs _args) {
17301730
topQuoteRule = quoteRule;
17311731
firstJumpEnd = ch; // to know how many bytes jump 0 is, for nrow estimate later (a less-good estimate when fill=true since line lengths vary more)
17321732
if (verbose) {
1733-
DTPRINT((unsigned)sep<32 ? " sep=%#02x" : " sep='%c'", sep); // # notranslate
1734-
DTPRINT(_(" with %d fields using quote rule %d\n"), topNumFields, quoteRule);
1733+
DTPRINT((unsigned)sep<32
1734+
? _(" sep=%#02x with %d fields using quote rule %d\n")
1735+
: _(" sep='%c' with %d fields using quote rule %d\n"),
1736+
sep, topNumFields, quoteRule);
17351737
}
17361738
}
17371739
} else {
@@ -1780,8 +1782,10 @@ int freadMain(freadMainArgs _args) {
17801782
topSkip = thisRow-thisBlockLines;
17811783
if (topSkip<0) topSkip=0; // inelegant but will do for now to pass single row input such as test 890
17821784
if (verbose) {
1783-
DTPRINT((unsigned)sep<32 ? " sep=%#02x" : " sep='%c'", sep); // # notranslate
1784-
DTPRINT(_(" with %d lines of %d fields using quote rule %d\n"), topNumLines, topNumFields, topQuoteRule);
1785+
DTPRINT((unsigned)sep<32
1786+
? _(" sep=%#02x with %d lines of %d fields using quote rule %d\n")
1787+
: _(" sep='%c' with %d lines of %d fields using quote rule %d\n"),
1788+
sep, topNumLines, topNumFields, topQuoteRule);
17851789
}
17861790
}
17871791
}

0 commit comments

Comments
 (0)