Skip to content

Commit

Permalink
fixed print formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
joc02012 committed Mar 11, 2013
1 parent 37cf00a commit 7baf6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions osd-target/osd-sense.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static int sense_info_build(uint8_t *data, int len, uint32_t not_init_funcs,
set_htonl(&data[12], completed_funcs);
set_htonll(&data[16], pid);
set_htonll(&data[24], oid);
osd_warning(" identification pid=%llx oid=%llx",pid, oid);
osd_warning(" identification pid=%llx oid=%llx", llu(pid), llu(oid));
return 32;
}

Expand All @@ -73,7 +73,7 @@ static int sense_csi_build(uint8_t *data, int len, uint64_t csi)
data[0] = 0x1;
data[1] = 0xa;
set_htonll(&data[4], csi);
osd_warning(" command-specific information=%llx",csi);
osd_warning(" command-specific information=%llx", llu(csi));
return 12;
}

Expand Down
2 changes: 1 addition & 1 deletion osd-target/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,7 @@ int osd_list(struct osd_device *osd, uint8_t list_attr, uint64_t pid,
add_len = (uint64_t) -1;
set_htonll(outdata, add_len);
set_htonll(&outdata[8], cont_id);
osd_info("%s: add_len=%llu cont_id=0x%llx", __func__, add_len, cont_id);
osd_info("%s: add_len=%llu cont_id=0x%llx", __func__, llu(add_len), llu(cont_id));
} else if (list_attr == 1 && get_attr->sz != 0 && pid != 0) {
if (list_id)
initial_oid = cont_id;
Expand Down

0 comments on commit 7baf6b6

Please sign in to comment.