Skip to content

Commit 4366dd7

Browse files
hfreudeVasily Gorbik
authored andcommitted
s390/zcrypt: fix wrong format specifications
Fixes 5 wrong format specification findings found by the kernel test robot in ap_queue.c: warning: format specifies type 'unsigned char' but the argument has type 'int' [-Wformat] __func__, status.response_code, Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reported-by: kernel test robot <lkp@intel.com> Fixes: 2ea2a60 ("s390/ap: add error response code field for ap queue devices") Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent b61e1f3 commit 4366dd7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/s390/crypto/ap_queue.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static enum ap_sm_wait ap_sm_read(struct ap_queue *aq)
197197
default:
198198
aq->dev_state = AP_DEV_STATE_ERROR;
199199
aq->last_err_rc = status.response_code;
200-
AP_DBF_WARN("%s RC 0x%02hhx on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
200+
AP_DBF_WARN("%s RC 0x%02x on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
201201
__func__, status.response_code,
202202
AP_QID_CARD(aq->qid), AP_QID_QUEUE(aq->qid));
203203
return AP_SM_WAIT_NONE;
@@ -262,7 +262,7 @@ static enum ap_sm_wait ap_sm_write(struct ap_queue *aq)
262262
default:
263263
aq->dev_state = AP_DEV_STATE_ERROR;
264264
aq->last_err_rc = status.response_code;
265-
AP_DBF_WARN("%s RC 0x%02hhx on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
265+
AP_DBF_WARN("%s RC 0x%02x on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
266266
__func__, status.response_code,
267267
AP_QID_CARD(aq->qid), AP_QID_QUEUE(aq->qid));
268268
return AP_SM_WAIT_NONE;
@@ -300,7 +300,7 @@ static enum ap_sm_wait ap_sm_reset(struct ap_queue *aq)
300300
default:
301301
aq->dev_state = AP_DEV_STATE_ERROR;
302302
aq->last_err_rc = status.response_code;
303-
AP_DBF_WARN("%s RC 0x%02hhx on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
303+
AP_DBF_WARN("%s RC 0x%02x on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
304304
__func__, status.response_code,
305305
AP_QID_CARD(aq->qid), AP_QID_QUEUE(aq->qid));
306306
return AP_SM_WAIT_NONE;
@@ -343,7 +343,7 @@ static enum ap_sm_wait ap_sm_reset_wait(struct ap_queue *aq)
343343
default:
344344
aq->dev_state = AP_DEV_STATE_ERROR;
345345
aq->last_err_rc = status.response_code;
346-
AP_DBF_WARN("%s RC 0x%02hhx on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
346+
AP_DBF_WARN("%s RC 0x%02x on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
347347
__func__, status.response_code,
348348
AP_QID_CARD(aq->qid), AP_QID_QUEUE(aq->qid));
349349
return AP_SM_WAIT_NONE;
@@ -384,7 +384,7 @@ static enum ap_sm_wait ap_sm_setirq_wait(struct ap_queue *aq)
384384
default:
385385
aq->dev_state = AP_DEV_STATE_ERROR;
386386
aq->last_err_rc = status.response_code;
387-
AP_DBF_WARN("%s RC 0x%02hhx on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
387+
AP_DBF_WARN("%s RC 0x%02x on 0x%02x.%04x -> AP_DEV_STATE_ERROR\n",
388388
__func__, status.response_code,
389389
AP_QID_CARD(aq->qid), AP_QID_QUEUE(aq->qid));
390390
return AP_SM_WAIT_NONE;

0 commit comments

Comments
 (0)