From dd739fcb039d51606e9a5454ec0aab17bcb01965 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 18 Apr 2018 19:39:46 -0700 Subject: gpu: nvgpu: Remove gk20a_dbg* functions Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/boardobj/boardobj.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/boardobj/boardobj.c') diff --git a/drivers/gpu/nvgpu/boardobj/boardobj.c b/drivers/gpu/nvgpu/boardobj/boardobj.c index f9be6981..f38c7c4a 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobj.c +++ b/drivers/gpu/nvgpu/boardobj/boardobj.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -32,7 +32,7 @@ u32 boardobj_construct_super(struct gk20a *g, struct boardobj **ppboardobj, struct boardobj *pboardobj = NULL; struct boardobj *devtmp = (struct boardobj *)args; - gk20a_dbg_info(" "); + nvgpu_log_info(g, " "); if (devtmp == NULL) return -EINVAL; @@ -61,7 +61,9 @@ u32 boardobj_construct_super(struct gk20a *g, struct boardobj **ppboardobj, u32 boardobj_destruct_super(struct boardobj *pboardobj) { - gk20a_dbg_info(""); + struct gk20a *g = pboardobj->g; + + nvgpu_log_info(g, " "); if (pboardobj == NULL) return -EINVAL; @@ -75,7 +77,7 @@ u32 boardobj_destruct_super(struct boardobj *pboardobj) bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj, u8 type) { - gk20a_dbg_info(""); + nvgpu_log_info(g, " "); return (0 != (pboardobj->type_mask & BIT(type))); } @@ -83,12 +85,12 @@ bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj, u32 boardobj_pmudatainit_super(struct gk20a *g, struct boardobj *pboardobj, struct nv_pmu_boardobj *pmudata) { - gk20a_dbg_info(""); + nvgpu_log_info(g, " "); if (pboardobj == NULL) return -EINVAL; if (pmudata == NULL) return -EINVAL; pmudata->type = pboardobj->type; - gk20a_dbg_info(" Done"); + nvgpu_log_info(g, " Done"); return 0; } -- cgit v1.2.2