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 <swarren@nvidia.com>
Reviewed-on: http://git-master/r/1495020
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Stephen Warren
2017-06-02 14:45:22 -06:00
committed by mobile promotions
parent 0ebe462c13
commit 345fc00445

View File

@@ -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,