126b76271a
Resolves: RHEL-58317 Resolves: RHEL-53438 Resolves: RHEL-36576 Resolves: RHEL-54006 Signed-off-by: Tao Liu <ltao@redhat.com>
70 lines
2.2 KiB
Diff
70 lines
2.2 KiB
Diff
From 1277ea524354fa628b4189e699af8d62f8be7021 Mon Sep 17 00:00:00 2001
|
|
From: Rosen Penev <rosenp@gmail.com>
|
|
Date: Sun, 31 Mar 2024 14:18:24 -0700
|
|
Subject: [PATCH 03/44] fix 32-bit formats
|
|
|
|
exposed with -Wformat when building on 32-bit systems
|
|
|
|
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
---
|
|
placement.c | 2 +-
|
|
ui/ui.c | 8 ++++----
|
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/placement.c b/placement.c
|
|
index 9fde8cb..dea7c23 100644
|
|
--- a/placement.c
|
|
+++ b/placement.c
|
|
@@ -172,7 +172,7 @@ static void validate_irq(struct irq_info *info, void *data)
|
|
{
|
|
if (info->assigned_obj != data)
|
|
log(TO_CONSOLE, LOG_INFO, "object validation error: irq %d is wrong, points to %p, should be %p\n",
|
|
- info->irq, info->assigned_obj, data);
|
|
+ info->irq, (void*)info->assigned_obj, data);
|
|
}
|
|
|
|
static void validate_object(struct topo_obj *d, void *data __attribute__((unused)))
|
|
diff --git a/ui/ui.c b/ui/ui.c
|
|
index bee6868..8354fc6 100644
|
|
--- a/ui/ui.c
|
|
+++ b/ui/ui.c
|
|
@@ -101,7 +101,7 @@ int get_valid_sleep_input(int column_offest)
|
|
if(input == NULL) {
|
|
curs_set(0);
|
|
attrset(COLOR_PAIR(1));
|
|
- mvprintw(2, column_offest, "%lu ", new_sleep);
|
|
+ mvprintw(2, column_offest, "%" PRIu64 " ", new_sleep);
|
|
move(LINES, COLS);
|
|
break;
|
|
}
|
|
@@ -125,7 +125,7 @@ int get_valid_sleep_input(int column_offest)
|
|
}
|
|
|
|
attrset(COLOR_PAIR(1));
|
|
- mvprintw(2, column_offest, "%lu ", new_sleep);
|
|
+ mvprintw(2, column_offest, "%" PRIu64 " ", new_sleep);
|
|
|
|
return new_sleep;
|
|
}
|
|
@@ -296,7 +296,7 @@ void handle_cpu_banning()
|
|
case '\r': {
|
|
attrset(COLOR_PAIR(3));
|
|
int banned = toggle_cpu(tmp, position + offset - 6);
|
|
- mvprintw(position, 3, "CPU %d ", position + offset - 6);
|
|
+ mvprintw(position, 3, "CPU %zu ", position + offset - 6);
|
|
if(banned) {
|
|
mvprintw(position, 19, "YES");
|
|
} else {
|
|
@@ -770,7 +770,7 @@ void display_tree_node_irqs(irq_t *irq, void *data)
|
|
if (max_offset >= offset && max_offset - offset < LINES - 5) {
|
|
snprintf(indent + strlen(indent), 32 - strlen(indent), "%s", (char *)data);
|
|
attrset(COLOR_PAIR(3));
|
|
- printw("%sIRQ %u, IRQs since last rebalance %lu\n",
|
|
+ printw("%sIRQ %u, IRQs since last rebalance %" PRIu64 "\n",
|
|
indent, irq->vector, irq->diff);
|
|
}
|
|
max_offset++;
|
|
--
|
|
2.47.0
|
|
|