From 345fc00445f83f9a08bc364f9cb242bca29e3870 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Fri, 2 Jun 2017 14:45:22 -0600 Subject: gpu: nvgpu: remove duplicate \n from log messages nvgpu_log/info/warn/err() internally add a \n to the end of the message. Hence, callers should not include a \n at the end of the message. Doing so results in duplicate \n being printed, which ends up creating empty log messages. Remove the duplicate \n from all err/warn messages. (This message was updated in parallel with the previous change to fix this particular issue) Bug 1928311 Change-Id: I789f8c4b4084539ac901ed0f6b815518900cee90 Signed-off-by: Stephen Warren Reviewed-on: http://git-master/r/1495020 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 9141264b..63896228 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -1563,7 +1563,7 @@ static bool gk20a_fifo_handle_mmu_fault( nvgpu_err(g, "%s mmu fault on engine %d, " "engine subid %d (%s), client %d (%s), " "addr 0x%llx, type %d (%s), access_type 0x%08x," - "inst_ptr 0x%llx\n", + "inst_ptr 0x%llx", fake_fault ? "fake" : "", engine_id, mmfault_info.client_type, -- cgit v1.2.2