kdb: Re-factor kdb_printf() message write code
authorSumit Garg <sumit.garg@linaro.org>
Thu, 4 Jun 2020 10:01:16 +0000 (15:31 +0530)
committerDaniel Thompson <daniel.thompson@linaro.org>
Thu, 25 Jun 2020 11:04:29 +0000 (12:04 +0100)
commit9d71b344f86f4264a5fae43c997a630e93c0de9b
tree9d4804fbc1ca81db1eec1bc32ef97bbf15f4f2fd
parent48778464bb7d346b47157d21ffde2af6b2d39110
kdb: Re-factor kdb_printf() message write code

Re-factor kdb_printf() message write code in order to avoid duplication
of code and thereby increase readability.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/1591264879-25920-2-git-send-email-sumit.garg@linaro.org
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/kdb_io.c