cri-o/conmon
W. Trevor King 9583581280 conmon: Distinguish pexit(s) from pexitf(fmt, ...) and similar
Avoid:

  $ make clean && make CFLAGS=-Wpedantic 2>&1 | head -n 5
  rm -f conmon.o cmsg.o ../bin/conmon
  cc -Wpedantic -std=c99 -Os -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -c -o conmon.o conmon.c
  conmon.c: In function ‘write_k8s_log’:
  conmon.c:342:33: warning: ISO C99 requires at least one argument for the "..." in a variadic macro
      ninfo("Creating new log file");
                                   ^

by distinguishing between calls with and without user-supplied
formatting.

Also remove some user-supplied newlines from the following

* nwarn for "Could not find newline in entire buffer"
* ninfo for "Got ctl message..."
* ninfo for "container %d exited with status..."
* nexitf for "Failed to write %s to exit file..."

because the macros add their own trailing newlines.

Also drop some redundant user-specified strerror() arguments from the
following:

* pexit for "Failed to open log file..."
* pexit for "Runtime path %s is not valid..."

because the pexit* macros add strerror on their own.

Signed-off-by: W. Trevor King <wking@tremily.us>
2018-03-03 14:58:35 -08:00
..
cmsg.c conmon: implement logging to logPath 2017-04-05 02:45:57 +10:00
cmsg.h conmon: implement logging to logPath 2017-04-05 02:45:57 +10:00
conmon.c conmon: Distinguish pexit(s) from pexitf(fmt, ...) and similar 2018-03-03 14:58:35 -08:00
Makefile conmon: add new option --version 2018-02-23 09:41:48 +01:00