diff options
author | Stephen Warren <swarren@nvidia.com> | 2017-05-22 14:29:19 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-26 06:34:30 -0400 |
commit | 9b95bb9c4ed56b8bd8028d38d0705181076f04e3 (patch) | |
tree | e7fde55cf891b42142185debc66b01fa891c6618 /drivers | |
parent | a5fc5e7131add41f2d9b4bbba2a9d0f318897331 (diff) |
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 messages.
Bug 1928311
Change-Id: I21c141934a125e0cc0cead9fb19fa6502235cf06
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-on: http://git-master/r/1487233
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c index c1398f92..23beca5d 100644 --- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | |||
@@ -81,7 +81,7 @@ static u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base) | |||
81 | if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) == 2) | 81 | if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) == 2) |
82 | return base * 2; | 82 | return base * 2; |
83 | else if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) != 1) { | 83 | else if (ltc_ltcs_ltss_cbc_num_active_ltcs__v(val) != 1) { |
84 | nvgpu_err(g, "Invalid number of active ltcs: %08x\n", val); | 84 | nvgpu_err(g, "Invalid number of active ltcs: %08x", val); |
85 | } | 85 | } |
86 | return base; | 86 | return base; |
87 | } | 87 | } |