OSDN Git Service

media: atomisp: use IA_CSS_ERROR() for error messages in sh_css_mipi.c
authorTsuchiya Yuto <kitakar@gmail.com>
Sun, 17 Oct 2021 16:19:46 +0000 (01:19 +0900)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:37 +0000 (08:11 +0000)
commit6fb5d718b08c8bb9b60cfbf5a0a19fa4f77ca29d
tree331596adb2b91de8e0ae39e77c783f734e54406c
parentd21ce8c2f7bf6d737b60c09f86db141b9e8e47f0
media: atomisp: use IA_CSS_ERROR() for error messages in sh_css_mipi.c

Some debug messages for error cases (messages contain "error: ") use
IA_CSS_DEBUG_TRACE_PRIVATE debug level. This causes these error messages
not to appear unless users raise debug output level to 7 or higher (using
module parameter, dbg_level=7).

So, use IA_CSS_DEBUG_ERROR debug level (dbg_level=1) instead considering
that these are error messages. There is already a macro IA_CSS_ERROR()
for this use case. Let's use it. It automatically appends "error: " at
the beginning and a newline to a message. Therefore, we can remove them
from these messages.

While here, remove the unnecessary newline from one IA_CSS_ERROR()
occurrence in the same file.

Signed-off-by: Tsuchiya Yuto <kitakar@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_mipi.c