fixed MSVCPP warning

This commit is contained in:
Stanislav Shwartsman 2014-07-09 15:39:47 +00:00
parent 2e2f6f8b5c
commit e2e549c675
2 changed files with 2 additions and 2 deletions

View File

@ -1302,7 +1302,7 @@ bx_bool bx_real_sim_c::save_sr_param(FILE *fp, bx_param_c *node, const char *sr_
fprintf(fp, node->get_format(), value);
} else {
if ((Bit64u)((bx_param_num_c*)node)->get_max() > BX_MAX_BIT32U) {
fprintf(fp, "0x"FMT_LL"x", (Bit64u) value);
fprintf(fp, "0x" FMT_LL "x", (Bit64u) value);
} else {
fprintf(fp, "0x%x", (Bit32u) value);
}

View File

@ -228,7 +228,7 @@ bx_bool scsi_device_t::save_requests(const char *path)
while (r != NULL) {
fprintf(fp, "%u = {\n", i);
fprintf(fp, " tag = %u\n", r->tag);
fprintf(fp, " sector = "FMT_LL"u\n", r->sector);
fprintf(fp, " sector = " FMT_LL "u\n", r->sector);
fprintf(fp, " sector_count = %u\n", r->sector_count);
fprintf(fp, " buf_len = %d\n", r->buf_len);
fprintf(fp, " status = %u\n", r->status);