Revision d607a523 qga/commands-posix.c

b/qga/commands-posix.c
401 401
        return -1;
402 402
    }
403 403

  
404
    slog("guest-file-open, handle: %d", handle);
404
    slog("guest-file-open, handle: %" PRId64, handle);
405 405
    return handle;
406 406
}
407 407

  
......
410 410
    GuestFileHandle *gfh = guest_file_handle_find(handle, err);
411 411
    int ret;
412 412

  
413
    slog("guest-file-close called, handle: %ld", handle);
413
    slog("guest-file-close called, handle: %" PRId64, handle);
414 414
    if (!gfh) {
415 415
        return;
416 416
    }
......
451 451
    read_count = fread(buf, 1, count, fh);
452 452
    if (ferror(fh)) {
453 453
        error_setg_errno(err, errno, "failed to read file");
454
        slog("guest-file-read failed, handle: %ld", handle);
454
        slog("guest-file-read failed, handle: %" PRId64, handle);
455 455
    } else {
456 456
        buf[read_count] = 0;
457 457
        read_data = g_malloc0(sizeof(GuestFileRead));
......
496 496
    write_count = fwrite(buf, 1, count, fh);
497 497
    if (ferror(fh)) {
498 498
        error_setg_errno(err, errno, "failed to write to file");
499
        slog("guest-file-write failed, handle: %ld", handle);
499
        slog("guest-file-write failed, handle: %" PRId64, handle);
500 500
    } else {
501 501
        write_data = g_malloc0(sizeof(GuestFileWrite));
502 502
        write_data->count = write_count;

Also available in: Unified diff