*
* It's used only when:
* 1) the 'XTRA_PROCPS_DEBUG' has been defined, or
- * 2) the '#include <proc/xtra-procps-debug.h>' used
+ * 2) an #include of 'xtra-procps-debug.h' is used
*/
PROCPS_EXPORT struct diskstats_result *xtra_diskstats_get (
for (i = 0; stack->head[i].item < DISKSTATS_logical_end; i++)
;
if (relative_enum < 0 || relative_enum >= i) {
- fprintf(stderr, "%s line %d: invalid relative_enum = %d, type = %s\n"
- , file, lineno, relative_enum, typestr);
+ fprintf(stderr, "%s line %d: invalid relative_enum = %d, valid range = 0-%d\n"
+ , file, lineno, relative_enum, i-1);
return NULL;
}
str = Item_table[stack->head[relative_enum].item].type2str;
*
* It's used only when:
* 1) the 'XTRA_PROCPS_DEBUG' has been defined, or
- * 2) the '#include <proc/xtra-procps-debug.h>' used
+ * 2) an #include of 'xtra-procps-debug.h' is used
*/
PROCPS_EXPORT struct meminfo_result *xtra_meminfo_get (
for (i = 0; stack->head[i].item < MEMINFO_logical_end; i++)
;
if (relative_enum < 0 || relative_enum >= i) {
- fprintf(stderr, "%s line %d: invalid relative_enum = %d, type = %s\n"
- , file, lineno, relative_enum, typestr);
+ fprintf(stderr, "%s line %d: invalid relative_enum = %d, valid range = 0-%d\n"
+ , file, lineno, relative_enum, i-1);
return NULL;
}
str = Item_table[stack->head[relative_enum].item].type2str;
*
* It's used only when:
* 1) the 'XTRA_PROCPS_DEBUG' has been defined, or
- * 2) the '#include <proc/xtra-procps-debug.h>' used
+ * 2) an #include of 'xtra-procps-debug.h' is used
*/
PROCPS_EXPORT struct pids_result *xtra_pids_val (
for (i = 0; stack->head[i].item < PIDS_logical_end; i++)
;
if (relative_enum < 0 || relative_enum >= i) {
- fprintf(stderr, "%s line %d: invalid relative_enum = %d, type = %s\n"
- , file, lineno, relative_enum, typestr);
+ fprintf(stderr, "%s line %d: invalid relative_enum = %d, valid range = 0-%d\n"
+ , file, lineno, relative_enum, i-1);
return NULL;
}
str = Item_table[stack->head[relative_enum].item].type2str;
*
* It's used only when:
* 1) the 'XTRA_PROCPS_DEBUG' has been defined, or
- * 2) the '#include <proc/xtra-procps-debug.h>' used
+ * 2) an #include of 'xtra-procps-debug.h' is used
*/
PROCPS_EXPORT struct slabinfo_result *xtra_slabinfo_get (
for (i = 0; stack->head[i].item < SLABINFO_logical_end; i++)
;
if (relative_enum < 0 || relative_enum >= i) {
- fprintf(stderr, "%s line %d: invalid relative_enum = %d, type = %s\n"
- , file, lineno, relative_enum, typestr);
+ fprintf(stderr, "%s line %d: invalid relative_enum = %d, valid range = 0-%d\n"
+ , file, lineno, relative_enum, i-1);
return NULL;
}
str = Item_table[stack->head[relative_enum].item].type2str;
*
* It's used only when:
* 1) the 'XTRA_PROCPS_DEBUG' has been defined, or
- * 2) the '#include <proc/xtra-procps-debug.h>' used
+ * 2) an #include of 'xtra-procps-debug.h' is used
*/
PROCPS_EXPORT struct stat_result *xtra_stat_get (
for (i = 0; stack->head[i].item < STAT_logical_end; i++)
;
if (relative_enum < 0 || relative_enum >= i) {
- fprintf(stderr, "%s line %d: invalid relative_enum = %d, type = %s\n"
- , file, lineno, relative_enum, typestr);
+ fprintf(stderr, "%s line %d: invalid relative_enum = %d, valid range = 0-%d\n"
+ , file, lineno, relative_enum, i-1);
return NULL;
}
str = Item_table[stack->head[relative_enum].item].type2str;
*
* It's used only when:
* 1) the 'XTRA_PROCPS_DEBUG' has been defined, or
- * 2) the '#include <proc/xtra-procps-debug.h>' used
+ * 2) an #include of 'xtra-procps-debug.h' is used
*/
PROCPS_EXPORT struct vmstat_result *xtra_vmstat_get (
for (i = 0; stack->head[i].item < VMSTAT_logical_end; i++)
;
if (relative_enum < 0 || relative_enum >= i) {
- fprintf(stderr, "%s line %d: invalid relative_enum = %d, type = %s\n"
- , file, lineno, relative_enum, typestr);
+ fprintf(stderr, "%s line %d: invalid relative_enum = %d, valid range = 0-%d\n"
+ , file, lineno, relative_enum, i-1);
return NULL;
}
str = Item_table[stack->head[relative_enum].item].type2str;