From: Ben Pfaff Date: Sun, 9 Mar 2014 23:00:04 +0000 (-0700) Subject: sys-file-reader: Fix bad printf format specifiers. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=815b194a23ee63977333c1e9d8fe11c2ccc7edd1;p=pspp sys-file-reader: Fix bad printf format specifiers. Found by GCC on x86-64. --- diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index 0571d15eb9..98af300312 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -1143,7 +1143,7 @@ read_value_label_record (struct sfm_reader *r, return false; if (record->n_labels > UINT_MAX / sizeof *record->labels) { - sys_error (r, r->pos - 4, _("Invalid number of labels %zu."), + sys_error (r, r->pos - 4, _("Invalid number of labels %u."), record->n_labels); return false; } @@ -1306,11 +1306,11 @@ read_extension_record (struct sfm_reader *r, int subtype, { if (type->size > 0 && record->size != type->size) sys_warn (r, record->pos, - _("Record type 7, subtype %d has bad size %zu " + _("Record type 7, subtype %d has bad size %u " "(expected %d)."), subtype, record->size, type->size); else if (type->count > 0 && record->count != type->count) sys_warn (r, record->pos, - _("Record type 7, subtype %d has bad count %zu " + _("Record type 7, subtype %d has bad count %u " "(expected %d)."), subtype, record->count, type->count); else if (type->count == 0 && type->size == 0) { @@ -1915,7 +1915,7 @@ parse_display_parameters (struct sfm_reader *r, else { sys_warn (r, record->pos, - _("Extension 11 has bad count %zu (for %zu variables)."), + _("Extension 11 has bad count %u (for %zu variables)."), record->count, n_vars); return; }