From c036d7afc3cc290bb5adc8d90513c136029aa47e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Feb 2018 23:56:31 +0000 Subject: [PATCH 1/2] scst/include/scst_debug.h: Insert a space to keep checkpatch happy git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7359 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index 9c075c3f0..062d0bf2f 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -406,6 +406,6 @@ do { \ __warned = true; \ PRINT_WARNING(format, ## args); \ } \ -} while(0) +} while (0) #endif /* __SCST_DEBUG_H */ From 86121f3ee4121bafdb1884547f7592d4709416db Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Feb 2018 23:57:14 +0000 Subject: [PATCH 2/2] scst: Reduce the object size slightly git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7360 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- scst/src/scst_targ.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index dedc389cc..b7b8b4b17 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -6846,7 +6846,7 @@ static void blockio_exec_rw(struct vdisk_cmd_params *p, bool write, bool fua) static int err_inj_cntr; if (++err_inj_cntr % 256 == 0) { - PRINT_INFO("blockio_exec_rw() error injection"); + PRINT_INFO("%s() error injection", __func__); scst_set_busy(cmd); goto free_bio; } diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 2090ba64a..34d8b0828 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -2027,7 +2027,7 @@ void scst_rx_data(struct scst_cmd *cmd, int status, break; default: - PRINT_ERROR("scst_rx_data() received unknown status %x", + PRINT_ERROR("%s() received unknown status %x", __func__, status); if (!cmd->write_not_received_set) scst_cmd_set_write_no_data_received(cmd);