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:
Terje Bergstrom
2017-06-22 13:15:17 -07:00
committed by mobile promotions
parent 001c7c3185
commit 6f0fcbc667
7 changed files with 18 additions and 22 deletions

View File

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