aboutsummaryrefslogtreecommitdiffstats
path: root/vold/logwrapper.c
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-03-17 17:15:47 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-03-18 09:29:29 -0700
commit83b65486beffc7c86f24c428fbb7b50bbbe189f9 (patch)
treeab343e30dd96348d35b0957453fbf6b7b0bac56d /vold/logwrapper.c
parent4a4c9f6f98055918f1ebff06b3cc1ed622c058fe (diff)
parente037fd7e193ecccbb5c0888e49f6d58c224bc11d (diff)
downloadsystem_core-83b65486beffc7c86f24c428fbb7b50bbbe189f9.tar.gz
system_core-83b65486beffc7c86f24c428fbb7b50bbbe189f9.tar.bz2
system_core-83b65486beffc7c86f24c428fbb7b50bbbe189f9.zip
Merge commit 'remotes/korg/cupcake' into merge
Conflicts: init/devices.c libpixelflinger/Android.mk
Diffstat (limited to 'vold/logwrapper.c')
-rw-r--r--vold/logwrapper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vold/logwrapper.c b/vold/logwrapper.c
index f803dba9..25d22819 100644
--- a/vold/logwrapper.c
+++ b/vold/logwrapper.c
@@ -95,7 +95,7 @@ void child(int argc, char* argv[]) {
// XXX: PROTECT FROM VIKING KILLER
if (execvp(argv_child[0], argv_child)) {
LOG(LOG_ERROR, "logwrapper",
- "executing %s failed: %s\n", argv_child[0], strerror(errno));
+ "executing %s failed: %s", argv_child[0], strerror(errno));
exit(-1);
}
}
@@ -111,24 +111,24 @@ int logwrap(int argc, char* argv[], pid_t *childPid)
/* Use ptty instead of socketpair so that STDOUT is not buffered */
parent_ptty = open("/dev/ptmx", O_RDWR);
if (parent_ptty < 0) {
- LOG(LOG_ERROR, "logwrapper", "Cannot create parent ptty\n");
+ LOG(LOG_ERROR, "logwrapper", "Cannot create parent ptty");
return -errno;
}
if (grantpt(parent_ptty) || unlockpt(parent_ptty) ||
((child_devname = (char*)ptsname(parent_ptty)) == 0)) {
- LOG(LOG_ERROR, "logwrapper", "Problem with /dev/ptmx\n");
+ LOG(LOG_ERROR, "logwrapper", "Problem with /dev/ptmx");
return -1;
}
pid = fork();
if (pid < 0) {
- LOG(LOG_ERROR, "logwrapper", "Failed to fork\n");
+ LOG(LOG_ERROR, "logwrapper", "Failed to fork");
return -errno;
} else if (pid == 0) {
child_ptty = open(child_devname, O_RDWR);
if (child_ptty < 0) {
- LOG(LOG_ERROR, "logwrapper", "Problem with child ptty\n");
+ LOG(LOG_ERROR, "logwrapper", "Problem with child ptty");
return -errno;
}