diff options
author | Stephen Warren <swarren@nvidia.com> | 2017-05-22 14:27:40 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-26 06:34:30 -0400 |
commit | 2e338c77eac4edffb94c8c9480dbd72712c7696f (patch) | |
tree | 9d5da6355bc653ef2ba9014ea696ad0391c523a1 /drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |
parent | 726900b8433294fd89a6d730d2fec9de8e33afda (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 err/warn messages.
Bug 1928311
Change-Id: I99362c5327f36146f28ba63d4e68181589735c39
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-on: http://git-master/r/1487232
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/regops_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/regops_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c index c4b357b1..9919fc3d 100644 --- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |||
@@ -636,7 +636,7 @@ static int validate_reg_op_offset(struct dbg_session_gk20a *dbg_s, | |||
636 | 636 | ||
637 | /* support only 24-bit 4-byte aligned offsets */ | 637 | /* support only 24-bit 4-byte aligned offsets */ |
638 | if (offset & 0xFF000003) { | 638 | if (offset & 0xFF000003) { |
639 | nvgpu_err(dbg_s->g, "invalid regop offset: 0x%x\n", offset); | 639 | nvgpu_err(dbg_s->g, "invalid regop offset: 0x%x", offset); |
640 | op->status |= REGOP(STATUS_INVALID_OFFSET); | 640 | op->status |= REGOP(STATUS_INVALID_OFFSET); |
641 | return -EINVAL; | 641 | return -EINVAL; |
642 | } | 642 | } |
@@ -674,7 +674,7 @@ static int validate_reg_op_offset(struct dbg_session_gk20a *dbg_s, | |||
674 | } | 674 | } |
675 | 675 | ||
676 | if (!valid) { | 676 | if (!valid) { |
677 | nvgpu_err(dbg_s->g, "invalid regop offset: 0x%x\n", offset); | 677 | nvgpu_err(dbg_s->g, "invalid regop offset: 0x%x", offset); |
678 | op->status |= REGOP(STATUS_INVALID_OFFSET); | 678 | op->status |= REGOP(STATUS_INVALID_OFFSET); |
679 | return -EINVAL; | 679 | return -EINVAL; |
680 | } | 680 | } |