From: Karel Zak Date: Mon, 18 Nov 2024 10:27:26 +0000 (+0100) Subject: lsirq,irqtop: cleanup threshold datatype X-Git-Tag: v2.42-start~148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c4b248c68149089c8be2f830214bb2be693307e;p=thirdparty%2Futil-linux.git lsirq,irqtop: cleanup threshold datatype Signed-off-by: Karel Zak --- diff --git a/sys-utils/irq-common.c b/sys-utils/irq-common.c index 6ed124f10..f069d8a63 100644 --- a/sys-utils/irq-common.c +++ b/sys-utils/irq-common.c @@ -531,7 +531,7 @@ struct libscols_table *get_scols_table(struct irq_output *out, struct irq_stat *prev, struct irq_stat **xstat, int softirq, - unsigned long threshold, + uintmax_t threshold, size_t setsize, cpu_set_t *cpuset) { @@ -570,7 +570,7 @@ struct libscols_table *get_scols_table(struct irq_output *out, } for (i = 0; i < stat->nr_irq; i++) - if (result[i].total >= threshold) + if ((uintmax_t) result[i].total >= threshold) add_scols_line(out, &result[i], table); free(result); diff --git a/sys-utils/irq-common.h b/sys-utils/irq-common.h index cb68c58e5..a23a51a96 100644 --- a/sys-utils/irq-common.h +++ b/sys-utils/irq-common.h @@ -76,7 +76,7 @@ struct libscols_table *get_scols_table(struct irq_output *out, struct irq_stat *prev, struct irq_stat **xstat, int softirq, - unsigned long threshold, + uintmax_t threshold, size_t setsize, cpu_set_t *cpuset);