summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
07916b2)
The `%x' needed a double cast, the `%p' needs just a single to void
pointer. The output can differ, e.g. `0x0' v. perhaps
implementation-defined `(nil)'.
get_param_value(pm, '?'));
/* print internal flags for type/subtype */
get_param_value(pm, '?'));
/* print internal flags for type/subtype */
- fprintf (stderr, " type %#x subtype %#x params 0x%x\n",
- ct->c_type, ct->c_subtype,
- (unsigned int)(unsigned long) ct->c_ctparams);
+ fprintf(stderr, " type %#x subtype %#x params %p\n",
+ ct->c_type, ct->c_subtype, (void *)ct->c_ctparams);
fprintf (stderr, " showproc \"%s\"\n", FENDNULL(ct->c_showproc));
fprintf (stderr, " termproc \"%s\"\n", FENDNULL(ct->c_termproc));
fprintf (stderr, " showproc \"%s\"\n", FENDNULL(ct->c_showproc));
fprintf (stderr, " termproc \"%s\"\n", FENDNULL(ct->c_termproc));
fprintf (stderr, " %s:%s", ENCODING_FIELD, ct->c_celine);
/* print internal flags for transfer encoding */
fprintf (stderr, " %s:%s", ENCODING_FIELD, ct->c_celine);
/* print internal flags for transfer encoding */
- fprintf (stderr, " transfer encoding %#x params 0x%x\n",
- ct->c_encoding, (unsigned int)(unsigned long) &ct->c_cefile);
+ fprintf(stderr, " transfer encoding %#x params %p\n",
+ ct->c_encoding, (void *)&ct->c_cefile);
/* print Content-ID */
if (ct->c_id)
/* print Content-ID */
if (ct->c_id)
fprintf (stderr, "c1: name=\"%s\" text=\"%s\" ovtxt=\"%s\"\n",
c1->c_name, c1->c_text, c1->c_ovtxt);
fprintf (stderr, "c1: name=\"%s\" text=\"%s\" ovtxt=\"%s\"\n",
c1->c_name, c1->c_text, c1->c_ovtxt);
- fprintf (stderr, "\tnfs=0x%x fmt=0x%x\n",
- (unsigned int)(unsigned long) c1->c_nfs,
- (unsigned int)(unsigned long) c1->c_fmt);
+ fprintf(stderr, "\tnfs=%p fmt=%p\n",
+ (void *)c1->c_nfs, (void *)c1->c_fmt);
fprintf (stderr, "\toffset=%d ovoff=%d width=%d cwidth=%d length=%d\n",
c1->c_offset, c1->c_ovoff, c1->c_width,
c1->c_cwidth, c1->c_length);
fprintf (stderr, "\toffset=%d ovoff=%d width=%d cwidth=%d length=%d\n",
c1->c_offset, c1->c_ovoff, c1->c_width,
c1->c_cwidth, c1->c_length);