mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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
This commit is contained in:
committed by
mobile promotions
parent
001c7c3185
commit
6f0fcbc667
@@ -97,8 +97,7 @@ static int __nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout,
|
||||
|
||||
vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
|
||||
dev_err(dev_from_gk20a(g),
|
||||
"Timeout detected @ %pF %s\n", caller, buf);
|
||||
nvgpu_err(g, "Timeout detected @ %pF %s", caller, buf);
|
||||
}
|
||||
|
||||
return -ETIMEDOUT;
|
||||
@@ -122,8 +121,7 @@ static int __nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout,
|
||||
|
||||
vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
|
||||
dev_err(dev_from_gk20a(g),
|
||||
"No more retries @ %pF %s\n", caller, buf);
|
||||
nvgpu_err(g, "No more retries @ %pF %s", caller, buf);
|
||||
}
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
Reference in New Issue
Block a user