pmxcfs: status: remove string literal params for g_strdup_printf

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Reviewed-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Link: https://lore.proxmox.com/20250801095431.117317-4-l.wagner@proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Lukas Wagner 2025-08-01 11:54:30 +02:00 committed by Thomas Lamprecht
parent c66917260e
commit 0795244f98

View file

@ -1429,7 +1429,7 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) {
}
filename = g_strdup_printf(RRDDIR "/pve-vm-9.0/%s", vmid);
char *filename_pve2 = g_strdup_printf(RRDDIR "/%s/%s", "pve2-vm", vmid);
char *filename_pve2 = g_strdup_printf(RRDDIR "/pve2-vm/%s", vmid);
int use_pve2_file = 0;
@ -1498,7 +1498,7 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) {
}
filename = g_strdup_printf(RRDDIR "/pve-storage-9.0/%s", node);
char *filename_pve2 = g_strdup_printf(RRDDIR "/%s/%s", "pve2-storage", node);
char *filename_pve2 = g_strdup_printf(RRDDIR "/pve2-storage/%s", node);
// check existing rrd files and directories
if (g_file_test(filename, G_FILE_TEST_EXISTS)) {