From: Michal Bloch Date: Wed, 23 Jan 2019 18:32:26 +0000 (+0100) Subject: logctl: fix an error in documentation X-Git-Tag: accepted/tizen/unified/20190201.061322~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10c665569946af6dc3bef96505f71726fdfe8443;p=platform%2Fcore%2Fsystem%2Fdlog.git logctl: fix an error in documentation Change-Id: I3309c18fe252ec614e92b8ed0b1dc457d58899bb Signed-off-by: Michal Bloch --- diff --git a/src/logctl/logctl.c b/src/logctl/logctl.c index 64dd6cc..8701fb0 100644 --- a/src/logctl/logctl.c +++ b/src/logctl/logctl.c @@ -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)