summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-02-16 12:35:06 -0600
committerMark Salyzyn2016-03-10 16:44:22 -0600
commit029c7373801b9e1791df334efa36588c216b4ab2 (patch)
tree4910afc300e3855f015db1afe72ef7464e5a2a25 /liblog/fake_log_device.c
parent8edbbe1dc148006e4cd588f42f580bfdaa7ae585 (diff)
downloadplatform-system-core-029c7373801b9e1791df334efa36588c216b4ab2.tar.gz
platform-system-core-029c7373801b9e1791df334efa36588c216b4ab2.tar.xz
platform-system-core-029c7373801b9e1791df334efa36588c216b4ab2.zip
liblog: document fakeLogClose never to be called
(cherry pick from commit bc81b17e06cb23501eeca03a530b3a90858ac7c3) Bug: 27107691 Change-Id: Ia699646ec2e83ca46f8b62b5d4f144e533b36074
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index 20e409861..aa88bedf8 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -691,6 +691,17 @@ int fakeLogOpen(const char *pathName, int flags)
691 return redirectOpen(pathName, flags); 691 return redirectOpen(pathName, flags);
692} 692}
693 693
694/*
695 * The logger API has no means or need to 'stop' or 'close' using the logs,
696 * and as such, there is no way for that 'stop' or 'close' to translate into
697 * a close operation to the fake log handler. fakeLogClose is provided for
698 * completeness only.
699 *
700 * We have no intention of adding a log close operation as it would complicate
701 * every user of the logging API with no gain since the only valid place to
702 * call is in the exit handler. Logging can continue in the exit handler to
703 * help debug HOST tools ...
704 */
694int fakeLogClose(int fd) 705int fakeLogClose(int fd)
695{ 706{
696 /* Assume that open() was called first. */ 707 /* Assume that open() was called first. */