diff options
author | Robin Barker <RMBarker@cpan.org> | 2001-03-29 14:29:21 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-29 14:26:03 +0000 |
commit | 29b291f76369791070837587a559330fa49a7060 (patch) | |
tree | 80be341f8bb06fd723c50206e2b57f6e529c677b | |
parent | 210db7fc53b6b7664595bb19b3377dc4d623b968 (diff) | |
download | perl-29b291f76369791070837587a559330fa49a7060.tar.gz |
printf warning
Message-Id: <200103291229.NAA03968@tempest.npl.co.uk>
p4raw-id: //depot/perl@9436
-rw-r--r-- | dump.c | 2 | ||||
-rw-r--r-- | ext/Data/Dumper/Dumper.xs | 2 | ||||
-rw-r--r-- | ext/Encode/Encode.xs | 2 | ||||
-rw-r--r-- | ext/Storable/Storable.xs | 15 | ||||
-rw-r--r-- | toke.c | 3 |
5 files changed, 14 insertions, 10 deletions
@@ -195,7 +195,7 @@ Perl_sv_peek(pTHX_ SV *sv) unref++; } else if (DEBUG_R_TEST && SvREFCNT(sv) > 1) { - Perl_sv_catpvf(aTHX_ t, "<%u>", SvREFCNT(sv)); + Perl_sv_catpvf(aTHX_ t, "<%"UVuf">", (UV)SvREFCNT(sv)); } diff --git a/ext/Data/Dumper/Dumper.xs b/ext/Data/Dumper/Dumper.xs index bfa50d7413..99cd099eb8 100644 --- a/ext/Data/Dumper/Dumper.xs +++ b/ext/Data/Dumper/Dumper.xs @@ -128,7 +128,7 @@ esc_q_utf8(pTHX_ SV* sv, register char *src, register STRLEN slen) r[j++] = '\\'; r[j++] = 'x'; r[j++] = '{'; - j += sprintf(r + j, "%x", k); + j += sprintf(r + j, "%"UVxf, k); r[j++] = '}'; dquote = TRUE; } diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index 13ba7045c4..a486939550 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -97,7 +97,7 @@ PerlIOEncode_pushed(PerlIO *f, const char *mode, SV *arg) { e->enc = Nullsv; errno = EINVAL; - Perl_warner(aTHX_ WARN_IO, "Cannot find encoding \"%_\"", arg); + Perl_warner(aTHX_ WARN_IO, "Cannot find encoding \"%"SVf"\"", arg); return -1; } SvREFCNT_inc(e->enc); diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs index 647673e86e..dfb0f76ea1 100644 --- a/ext/Storable/Storable.xs +++ b/ext/Storable/Storable.xs @@ -3086,7 +3086,8 @@ static SV *retrieve_idx_blessed(stcxt_t *cxt, char *cname) sva = av_fetch(cxt->aclass, idx, FALSE); if (!sva) - CROAK(("Class name #%d should have been seen already", idx)); + CROAK(("Class name #%"IVdf" should have been seen already", + (IV)idx)); class = SvPVX(*sva); /* We know it's a PV, by construction */ @@ -3281,7 +3282,8 @@ static SV *retrieve_hook(stcxt_t *cxt, char *cname) sva = av_fetch(cxt->aclass, idx, FALSE); if (!sva) - CROAK(("Class name #%d should have been seen already", idx)); + CROAK(("Class name #%"IVdf" should have been seen already", + (IV)idx)); class = SvPVX(*sva); /* We know it's a PV, by construction */ TRACEME(("class ID %d => %s", idx, class)); @@ -3382,7 +3384,7 @@ static SV *retrieve_hook(stcxt_t *cxt, char *cname) tag = ntohl(tag); svh = av_fetch(cxt->aseen, tag, FALSE); if (!svh) - CROAK(("Object #%d should have been retrieved already", tag)); + CROAK(("Object #%"IVdf" should have been retrieved already", (IV)tag)); xsv = *svh; ary[i] = SvREFCNT_inc(xsv); } @@ -4532,7 +4534,7 @@ static SV *retrieve(stcxt_t *cxt, char *cname) I32 tagn; svh = hv_fetch(cxt->hseen, (char *) &tag, sizeof(tag), FALSE); if (!svh) - CROAK(("Old tag 0x%x should have been mapped already", tag)); + CROAK(("Old tag 0x%"UVxf" should have been mapped already", (UV)tag)); tagn = SvIV(*svh); /* Mapped tag number computed earlier below */ /* @@ -4541,7 +4543,7 @@ static SV *retrieve(stcxt_t *cxt, char *cname) svh = av_fetch(cxt->aseen, tagn, FALSE); if (!svh) - CROAK(("Object #%d should have been retrieved already", tagn)); + CROAK(("Object #%"IVdf" should have been retrieved already", (IV)tagn)); sv = *svh; TRACEME(("has retrieved #%d at 0x%"UVxf, tagn, PTR2UV(sv))); SvREFCNT_inc(sv); /* One more reference to this same sv */ @@ -4582,7 +4584,8 @@ again: tag = ntohl(tag); svh = av_fetch(cxt->aseen, tag, FALSE); if (!svh) - CROAK(("Object #%d should have been retrieved already", tag)); + CROAK(("Object #%"IVdf" should have been retrieved already", + (IV)tag)); sv = *svh; TRACEME(("had retrieved #%d at 0x%"UVxf, tag, PTR2UV(sv))); SvREFCNT_inc(sv); /* One more reference to this same sv */ @@ -187,7 +187,8 @@ S_tokereport(pTHX_ char *thing, char* s, I32 rv) SV *report; DEBUG_T({ report = newSVpv(thing, 0); - Perl_sv_catpvf(aTHX_ report, ":line %i:%i:", CopLINE(PL_curcop), rv); + Perl_sv_catpvf(aTHX_ report, ":line %d:%"IVdf":", CopLINE(PL_curcop), + (IV)rv); if (s - PL_bufptr > 0) sv_catpvn(report, PL_bufptr, s - PL_bufptr); |