summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/timers.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-22 16:15:17 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-30 21:34:59 -0400
commit6f0fcbc667ca55ed25818467069853e6d750cd7d (patch)
tree26cb9d675fd262b04485df6b8d21bb82a491a2c1 /drivers/gpu/nvgpu/common/linux/timers.c
parent001c7c3185d9b087f89f48a41bee27d2d06721f6 (diff)
gpu: nvgpu: Convert logging from dev_*() to nvgpu_*()
Convert a few calls from dev_*() logging to nvgpu_*(). This reduces dependency to Linux specific struct device pointer. JIRA NVGPU-38 Change-Id: Ib51a6b1287db25b7dd4d164aec3ac75fa2801ebf Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1507929 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/timers.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/timers.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/timers.c b/drivers/gpu/nvgpu/common/linux/timers.c
index cfebb799..2953902e 100644
--- a/drivers/gpu/nvgpu/common/linux/timers.c
+++ b/drivers/gpu/nvgpu/common/linux/timers.c
@@ -97,8 +97,7 @@ static int __nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
97 97
98 vsnprintf(buf, sizeof(buf), fmt, args); 98 vsnprintf(buf, sizeof(buf), fmt, args);
99 99
100 dev_err(dev_from_gk20a(g), 100 nvgpu_err(g, "Timeout detected @ %pF %s", caller, buf);
101 "Timeout detected @ %pF %s\n", caller, buf);
102 } 101 }
103 102
104 return -ETIMEDOUT; 103 return -ETIMEDOUT;
@@ -122,8 +121,7 @@ static int __nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
122 121
123 vsnprintf(buf, sizeof(buf), fmt, args); 122 vsnprintf(buf, sizeof(buf), fmt, args);
124 123
125 dev_err(dev_from_gk20a(g), 124 nvgpu_err(g, "No more retries @ %pF %s", caller, buf);
126 "No more retries @ %pF %s\n", caller, buf);
127 } 125 }
128 126
129 return -ETIMEDOUT; 127 return -ETIMEDOUT;