Skip to content

Commit dc566ab

Browse files
yang8621lijinxia
authored andcommitted
DM: refine vRPMB logs
Remove unused logs and correct spelling Signed-off-by: Huang Yang <yang.huang@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
1 parent c7d1460 commit dc566ab

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

devicemodel/hw/pci/virtio/rpmb_backend.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static int rpmb_check_frame(const char *cmd_str, int *err,
206206
if (addr && !memcmp(cmd_str, WRITE_DATA_STR, sizeof(WRITE_DATA_STR))) {
207207
if (*addr < get_common_blocks()) {
208208
*err = RPMB_RES_WRITE_FAILURE;
209-
DPRINTF(("%s: Common block is readed only\n", cmd_str));
209+
DPRINTF(("%s: Common block is read only\n", cmd_str));
210210
return -1;
211211
}
212212
}
@@ -298,8 +298,6 @@ static int rpmb_virt_write(uint32_t ioc_cmd, void* seq_data,
298298
__u16 rpmb_result = 0;
299299
int rc;
300300

301-
DPRINTF(("enter to %s\n", __func__));
302-
303301
if (in_cnt == 0 || in_frame == NULL || seq_data == NULL) {
304302
DPRINTF(("%s: in_frame, in_cnt or seq_data is not available.\n", __func__));
305303
return -1;
@@ -359,7 +357,6 @@ static int rpmb_virt_write(uint32_t ioc_cmd, void* seq_data,
359357
if (out_frame->result == RPMB_RES_OK) {
360358
phy_counter++;
361359
virt_counter++;
362-
DPRINTF(("%s: rpmb virt ioctl result is ok.\n", __func__));
363360
}
364361

365362
rpmb_replace_frame(out_frame, out_cnt, virt_rpmb_key, NULL,
@@ -384,8 +381,6 @@ static int rpmb_virt_read(uint32_t ioc_cmd, void* seq_data,
384381
uint16_t block_count;
385382
uint8_t uos_id;
386383

387-
DPRINTF(("enter to %s\n", __func__));
388-
389384
if (in_cnt == 0 || in_frame == NULL) {
390385
DPRINTF(("%s: in_frame, in_cnt or seq_data is not available\n", __func__));
391386
return -1;
@@ -435,8 +430,6 @@ static int rpmb_virt_get_counter(struct rpmb_frame* in_frame, uint32_t in_cnt,
435430
int err = RPMB_RES_OK;
436431
int resp = RPMB_RESP_GET_COUNTER;
437432

438-
DPRINTF(("enter to %s\n", __func__));
439-
440433
if (in_cnt == 0 || in_frame == NULL) {
441434
DPRINTF(("%s: in_frame or in_cnt is not available\n", __func__));
442435
return -1;

0 commit comments

Comments
 (0)