skd: fix error messages in skd_init()

* change priority level from KERN_INFO to KERN_ERR
* add "skd: " prefix
* do minor CodingStyle fixes

Cc: Akhil Bhansali <abhansali@stec-inc.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Bartlomiej Zolnierkiewicz 2013-11-05 12:37:01 +01:00 committed by Jens Axboe
parent 2b91c55222
commit fbed149ab3
1 changed files with 9 additions and 12 deletions

View File

@ -5406,47 +5406,44 @@ static int __init skd_init(void)
case SKD_IRQ_MSIX: case SKD_IRQ_MSIX:
break; break;
default: default:
pr_info("skd_isr_type %d invalid, re-set to %d\n", pr_err(PFX "skd_isr_type %d invalid, re-set to %d\n",
skd_isr_type, SKD_IRQ_DEFAULT); skd_isr_type, SKD_IRQ_DEFAULT);
skd_isr_type = SKD_IRQ_DEFAULT; skd_isr_type = SKD_IRQ_DEFAULT;
} }
if (skd_max_queue_depth < 1 if (skd_max_queue_depth < 1 ||
|| skd_max_queue_depth > SKD_MAX_QUEUE_DEPTH) { skd_max_queue_depth > SKD_MAX_QUEUE_DEPTH) {
pr_info( pr_err(PFX "skd_max_queue_depth %d invalid, re-set to %d\n",
"skd_max_queue_depth %d invalid, re-set to %d\n",
skd_max_queue_depth, SKD_MAX_QUEUE_DEPTH_DEFAULT); skd_max_queue_depth, SKD_MAX_QUEUE_DEPTH_DEFAULT);
skd_max_queue_depth = SKD_MAX_QUEUE_DEPTH_DEFAULT; skd_max_queue_depth = SKD_MAX_QUEUE_DEPTH_DEFAULT;
} }
if (skd_max_req_per_msg < 1 || skd_max_req_per_msg > 14) { if (skd_max_req_per_msg < 1 || skd_max_req_per_msg > 14) {
pr_info( pr_err(PFX "skd_max_req_per_msg %d invalid, re-set to %d\n",
"skd_max_req_per_msg %d invalid, re-set to %d\n",
skd_max_req_per_msg, SKD_MAX_REQ_PER_MSG_DEFAULT); skd_max_req_per_msg, SKD_MAX_REQ_PER_MSG_DEFAULT);
skd_max_req_per_msg = SKD_MAX_REQ_PER_MSG_DEFAULT; skd_max_req_per_msg = SKD_MAX_REQ_PER_MSG_DEFAULT;
} }
if (skd_sgs_per_request < 1 || skd_sgs_per_request > 4096) { if (skd_sgs_per_request < 1 || skd_sgs_per_request > 4096) {
pr_info( pr_err(PFX "skd_sg_per_request %d invalid, re-set to %d\n",
"skd_sg_per_request %d invalid, re-set to %d\n",
skd_sgs_per_request, SKD_N_SG_PER_REQ_DEFAULT); skd_sgs_per_request, SKD_N_SG_PER_REQ_DEFAULT);
skd_sgs_per_request = SKD_N_SG_PER_REQ_DEFAULT; skd_sgs_per_request = SKD_N_SG_PER_REQ_DEFAULT;
} }
if (skd_dbg_level < 0 || skd_dbg_level > 2) { if (skd_dbg_level < 0 || skd_dbg_level > 2) {
pr_info("skd_dbg_level %d invalid, re-set to %d\n", pr_err(PFX "skd_dbg_level %d invalid, re-set to %d\n",
skd_dbg_level, 0); skd_dbg_level, 0);
skd_dbg_level = 0; skd_dbg_level = 0;
} }
if (skd_isr_comp_limit < 0) { if (skd_isr_comp_limit < 0) {
pr_info("skd_isr_comp_limit %d invalid, set to %d\n", pr_err(PFX "skd_isr_comp_limit %d invalid, set to %d\n",
skd_isr_comp_limit, 0); skd_isr_comp_limit, 0);
skd_isr_comp_limit = 0; skd_isr_comp_limit = 0;
} }
if (skd_max_pass_thru < 1 || skd_max_pass_thru > 50) { if (skd_max_pass_thru < 1 || skd_max_pass_thru > 50) {
pr_info("skd_max_pass_thru %d invalid, re-set to %d\n", pr_err(PFX "skd_max_pass_thru %d invalid, re-set to %d\n",
skd_max_pass_thru, SKD_N_SPECIAL_CONTEXT); skd_max_pass_thru, SKD_N_SPECIAL_CONTEXT);
skd_max_pass_thru = SKD_N_SPECIAL_CONTEXT; skd_max_pass_thru = SKD_N_SPECIAL_CONTEXT;
} }