summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAcorn Pooley <apooley@nvidia.com>2010-04-22 13:53:07 -0700
committerGary King <gking@nvidia.com>2010-04-23 15:27:31 -0700
commite4dfd8b46d6323beff5a5aa902cf0f6659c4241c (patch)
tree92ee59b995d2dfbb22c143a7f371eaca4565edca /arch
parenta22d178b937d39cea49dfe736a7f0698e0c39bd6 (diff)
add NvOsShowError()
Change-Id: I35cce6b67b2ad0611c742c31ac8e4f6c5b271e3d Reviewed-on: http://git-master/r/1182 Reviewed-by: Acorn Pooley <apooley@nvidia.com> Tested-by: Acorn Pooley <apooley@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/nvos/nvos.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/nvos/nvos.c b/arch/arm/mach-tegra/nvos/nvos.c
index 40651598cba3..9b4329b97dc4 100644
--- a/arch/arm/mach-tegra/nvos/nvos.c
+++ b/arch/arm/mach-tegra/nvos/nvos.c
@@ -283,6 +283,15 @@ NvS32 NvOsDebugNprintf(const char *format, ...)
return r;
}
+#if NV_DEBUG
+NvError
+NvOsShowError(NvError err, const char *file, int line)
+{
+ NvOsDebugPrintf("Error %08x at %s:%d\n",
+ (int)err, file, line);
+ return err;
+}
+#endif
NvError NvOsGetOsInformation(NvOsOsInfo *pOsInfo)
{