logctl: fix an error in documentation 19/198319/2
authorMichal Bloch <m.bloch@samsung.com>
Wed, 23 Jan 2019 18:32:26 +0000 (19:32 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 24 Jan 2019 04:41:15 +0000 (04:41 +0000)
Change-Id: I3309c18fe252ec614e92b8ed0b1dc457d58899bb
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logctl/logctl.c

index 64dd6cc..8701fb0 100644 (file)
@@ -230,14 +230,15 @@ static void close_FILE(FILE *const *file)
  *
  * Thus:
  *   FOO matches both FOO=BAR and FOOOO=BAZ. Since the value is NULL, both these lines are removed.
- *   ABC= matches both ABC=XYZ and ABC=ZYX, these lines are not copied. Instead, ABC=YYY is added.
+ *   ABC= matches both ABC=XYZ and ABC=ZYX, these lines are not copied. Instead, ABC=YYY is added
+ *     behind any lines that were not matched.
  *   ABCABC is not matched by any kv pair, so it is copied verbatim.
  *   The QWER= prefix is not matched by any line, so QWER=ASDF is appended to the end.
  *
  * The resulting file will therefore look like:
  *  ABCABC=QQQ
  *  ABC=YYY
- *  555=456
+ *  QWER=ASDF
  *
  */
 int copy_except(FILE *in, FILE *out, struct keys_values *kv)