Revision 4c978075 block-qcow2.c

b/block-qcow2.c
223 223
#endif
224 224

  
225 225
        if (bdrv_pread(s->hd, offset, &ext, sizeof(ext)) != sizeof(ext)) {
226
            fprintf(stderr, "qcow_handle_extension: ERROR: pread fail from offset %lu\n",
227
                    offset);
226
            fprintf(stderr, "qcow_handle_extension: ERROR: pread fail from offset %llu\n",
227
                    (unsigned long long)offset);
228 228
            return 1;
229 229
        }
230 230
        be32_to_cpus(&ext.magic);
......
240 240
        case QCOW_EXT_MAGIC_BACKING_FORMAT:
241 241
            if (ext.len >= sizeof(bs->backing_format)) {
242 242
                fprintf(stderr, "ERROR: ext_backing_format: len=%u too large"
243
                        " (>=%lu)\n",
243
                        " (>=%zu)\n",
244 244
                        ext.len, sizeof(bs->backing_format));
245 245
                return 2;
246 246
            }

Also available in: Unified diff