summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2018-03-20 13:40:04 -0700
committerAmit Pundir <amit.pundir@linaro.org>2018-05-20 16:40:16 +0530
commit51775a87096b3079b3c861080d57572f3221e21d (patch)
treee43a09776f8defeef8f8b9bf14c18705371fd1ea /drivers/platform
parent49488f3c35d628f1d24298fa65b3ceb048d02aec (diff)
goldfish: pipe: ANDROID: fix logging format strings
* remove '%p' to avoid exposing kernel addresses; * add missing '\n'. Bug: 72717639 Bug: 66884503 Change-Id: I81357841dc334df595a3244f232c2e6bb72e64a1 Signed-off-by: Roman Kiryanov <rkir@google.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/goldfish/goldfish_pipe_v2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/platform/goldfish/goldfish_pipe_v2.c b/drivers/platform/goldfish/goldfish_pipe_v2.c
index 3119b3341a7b..aa794a6fcee7 100644
--- a/drivers/platform/goldfish/goldfish_pipe_v2.c
+++ b/drivers/platform/goldfish/goldfish_pipe_v2.c
@@ -721,12 +721,11 @@ static int goldfish_pipe_open(struct inode *inode, struct file *file)
status = goldfish_cmd_locked(pipe, PIPE_CMD_OPEN);
spin_unlock_irqrestore(&dev->lock, flags);
if (status < 0) {
- pr_err("Could not tell host of new pipe! status=%d", status);
+ pr_err("Could not tell host of new pipe! status=%d\n", status);
goto err_cmd;
}
/* All is done, save the pipe into the file's private data field */
file->private_data = pipe;
- pr_debug("%s on 0x%p\n", __func__, pipe);
return 0;
err_cmd:
@@ -746,8 +745,6 @@ static int goldfish_pipe_release(struct inode *inode, struct file *filp)
struct goldfish_pipe *pipe = filp->private_data;
struct goldfish_pipe_dev *dev = pipe->dev;
- pr_debug("%s on 0x%p\n", __func__, pipe);
-
/* The guest is closing the channel, so tell the emulator right now */
(void)goldfish_cmd(pipe, PIPE_CMD_CLOSE);