sprintf(s, " %28s", ds_namv[i]);
Tcl_ListObjAppendElement(interp, listPtr,
Tcl_NewStringObj(s, -1));
- sprintf(s, "\n\n%10lu:", last_update);
+ sprintf(s, "\n\n%10lu:", (unsigned long) last_update);
Tcl_ListObjAppendElement(interp, listPtr,
Tcl_NewStringObj(s, -1));
for (i = 0; i < ds_cnt; i++) {
} else if (attr & DBI_INTEGER_SIZE4) { value=dbi_result_get_int_idx(result,idx);
} else if (attr & DBI_INTEGER_SIZE8) { value=dbi_result_get_longlong_idx(result,idx);
} else { value=DNAN;
- if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %i for type INTEGER\n",time(NULL),idx,attr ); }
+ if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %u for type INTEGER\n",time(NULL),idx,attr ); }
}
break;
case DBI_TYPE_DECIMAL:
if (attr & DBI_DECIMAL_SIZE4) { value=floor(dbi_result_get_float_idx(result,idx));
} else if (attr & DBI_DECIMAL_SIZE8) { value=floor(dbi_result_get_double_idx(result,idx));
} else { value=DNAN;
- if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %i for type DECIMAL\n",time(NULL),idx,attr ); }
+ if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %u for type DECIMAL\n",time(NULL),idx,attr ); }
}
break;
case DBI_TYPE_BINARY:
value=dbi_result_get_datetime_idx(result,idx);
break;
default:
- if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported type: %i with attribute %i\n",time(NULL),idx,type,attr ); }
+ if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported type: %u with attribute %u\n",time(NULL),idx,type,attr ); }
value=DNAN;
break;
}
} else if (attr & DBI_INTEGER_SIZE4) { value=dbi_result_get_int_idx(result,idx);
} else if (attr & DBI_INTEGER_SIZE8) { value=dbi_result_get_longlong_idx(result,idx);
} else { value=DNAN;
- if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %i for type INTEGER\n",time(NULL),idx,attr ); }
+ if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %u for type INTEGER\n",time(NULL),idx,attr ); }
}
break;
case DBI_TYPE_DECIMAL:
if (attr & DBI_DECIMAL_SIZE4) { value=dbi_result_get_float_idx(result,idx);
} else if (attr & DBI_DECIMAL_SIZE8) { value=dbi_result_get_double_idx(result,idx);
} else { value=DNAN;
- if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %i for type DECIMAL\n",time(NULL),idx,attr ); }
+ if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported attribute flags %u for type DECIMAL\n",time(NULL),idx,attr ); }
}
break;
case DBI_TYPE_BINARY:
value=dbi_result_get_datetime_idx(result,idx);
break;
default:
- if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported type: %i with attribute %i\n",time(NULL),idx,type,attr ); }
+ if (getenv("RRDDEBUGSQL")) { fprintf(stderr,"RRDDEBUGSQL: %li: column %i unsupported type: %u with attribute %u\n",time(NULL),idx,type,attr ); }
value=DNAN;
break;
}
for (i = im->gdes_c - 1; (gdp->gf == gf) && (i >= 0); i--) {
dprintfparsed("trying to process entry %li with type %u\n", i,
- im->gdes[i].gf);
+ (unsigned int) im->gdes[i].gf);
switch (im->gdes[i].gf) {
case GF_LINE:
case GF_AREA:
gdp->gf = im->gdes[i].gf;
gdp->linewidth = im->gdes[i].linewidth;
dprintfparsed("found matching LINE/AREA at %li with type %u\n", i,
- im->gdes[i].gf);
+ (unsigned int) im->gdes[i].gf);
break;
default:
break;
}
dprintf("VNAME : %s (%li)\n", gdp->vname, gdp->vidx);
if ((int) gdp->cf > -1) {
- dprintf("CF : (%u)\n", gdp->cf);
+ dprintf("CF : (%u)\n", (unsigned int) gdp->cf);
}
dprintf("FORMAT: \"%s\"\n", gdp->legend);
dprintf("=================================\n");
/* debug output */
dprintf("=================================\n");
dprintf("TEXTALIGN : %s\n", pa->arg_orig);
- dprintf("ALIGNMENT : %s (%u)\n", align, gdp->txtalign);
+ dprintf("ALIGNMENT : %s (%u)\n", align, (unsigned int) gdp->txtalign);
dprintf("=================================\n");
/* and return */
return 0;