From f125d1b681c324d5d58abcc42fac1301e1faa921 Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Thu, 30 Aug 2018 10:29:08 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1809642 Reviewed-by: svc-misra-checker Reviewed-by: Terje Bergstrom GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/os_fence_android_syncpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu') 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( nvhost_dev, id, thresh, "fence"); if (IS_ERR(fence)) { - nvgpu_err(c->g, "error constructing fence %s", "fence"); + nvgpu_err(c->g, "error %d during construction of fence.", (int)PTR_ERR(fence)); return PTR_ERR(fence); } -- cgit v1.2.2