Skip to content

Commit 459a81c

Browse files
committed
Standardize wording of "vs." over "vs" (comments, messages, docs) to be consistent, take two
Signed-off-by: Jim Klimov <jimklimov@gmail.com>
1 parent 6719fd5 commit 459a81c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/nutlogtest.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main(void) {
3434
#endif
3535

3636
upsdebugx(0, "D: checking with libc handling of NULL (can segfault for some libc implementations):");
37-
upsdebugx(0, "D: '%s' vs '%s'", s1, s2);
37+
upsdebugx(0, "D: '%s' vs. '%s'", s1, s2);
3838

3939
/* This explicitly does not work with -Wformat, due to verbatim NULL without a var:
4040
* nutlogtest.c:20:5: error: reading through null pointer (argument 4) [-Werror=format=]
@@ -44,7 +44,7 @@ int main(void) {
4444
* upsdebugx(0, "D: '%s' vs. '%s'", NUT_STRARG((char *)NULL), (char *)NULL);
4545
*/
4646

47-
upsdebugx(0, "D: checking with NUT_STRARG macro: '%s' vs '%s'", NUT_STRARG(s2), s2);
47+
upsdebugx(0, "D: checking with NUT_STRARG macro: '%s' vs. '%s'", NUT_STRARG(s2), s2);
4848

4949
#ifdef NUT_STRARG
5050
#undef NUT_STRARG
@@ -60,7 +60,7 @@ int main(void) {
6060
* 45 | upsdebugx(0, "D: checking with NUT_STRARG macro: '%s' vs. '%s'", NUT_STRARG(s2), s2);
6161
* | ^~
6262
*/
63-
upsdebugx(0, "D: checking that macro wrap trick works: '%s' vs '%s'", NUT_STRARG(s2), s2);
63+
upsdebugx(0, "D: checking that macro wrap trick works: '%s' vs. '%s'", NUT_STRARG(s2), s2);
6464

6565
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_FORMAT_OVERFLOW)
6666
# pragma GCC diagnostic pop

0 commit comments

Comments
 (0)