diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2018-08-30 00:59:08 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-03 07:13:55 -0400 |
commit | f125d1b681c324d5d58abcc42fac1301e1faa921 (patch) | |
tree | d5acaeb5e9aadacfa3b69dc9a46b830c254a3ecd /drivers | |
parent | b0070a58cca1390f5aef32879eb656af9468e7c7 (diff) |
gpu: nvgpu: print error code when sync_fence construction failed
print the correct error code when the sync_fence construction fails
instead of just an error message.
Bug 200421587
Change-Id: I9d6f9df8bec0e43d0a1198fbe7ab2631f12f572a
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1809642
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/os_fence_android_syncpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/os_fence_android_syncpt.c b/drivers/gpu/nvgpu/os/linux/os_fence_android_syncpt.c index f15d0729..103ad243 100644 --- a/drivers/gpu/nvgpu/os/linux/os_fence_android_syncpt.c +++ b/drivers/gpu/nvgpu/os/linux/os_fence_android_syncpt.c | |||
@@ -99,7 +99,7 @@ int nvgpu_os_fence_syncpt_create( | |||
99 | nvhost_dev, id, thresh, "fence"); | 99 | nvhost_dev, id, thresh, "fence"); |
100 | 100 | ||
101 | if (IS_ERR(fence)) { | 101 | if (IS_ERR(fence)) { |
102 | nvgpu_err(c->g, "error constructing fence %s", "fence"); | 102 | nvgpu_err(c->g, "error %d during construction of fence.", (int)PTR_ERR(fence)); |
103 | return PTR_ERR(fence); | 103 | return PTR_ERR(fence); |
104 | } | 104 | } |
105 | 105 | ||