Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame^] | 1 | From 2f0ff65eaa93f18d9edb5d03329b00d8e5e73869 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Lukas=20M=C3=A4rdian?= <lukas.maerdian@canonical.com> |
| 3 | Date: Wed, 4 Aug 2021 15:55:00 +0200 |
| 4 | Subject: [PATCH] parse-nm: fix 32bit format string |
| 5 | |
| 6 | --- |
| 7 | src/parse-nm.c | 2 +- |
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 | |
| 10 | diff --git a/src/parse-nm.c b/src/parse-nm.c |
| 11 | index 9b09e34..bf998b7 100644 |
| 12 | --- a/src/parse-nm.c |
| 13 | +++ b/src/parse-nm.c |
| 14 | @@ -136,7 +136,7 @@ static void |
| 15 | handle_bridge_uint(GKeyFile* kf, const gchar* key, NetplanNetDefinition* nd, char** dataptr) { |
| 16 | if (g_key_file_get_uint64(kf, "bridge", key, NULL)) { |
| 17 | nd->custom_bridging = TRUE; |
| 18 | - *dataptr = g_strdup_printf("%lu", g_key_file_get_uint64(kf, "bridge", key, NULL)); |
| 19 | + *dataptr = g_strdup_printf("%"G_GUINT64_FORMAT, g_key_file_get_uint64(kf, "bridge", key, NULL)); |
| 20 | _kf_clear_key(kf, "bridge", key); |
| 21 | } |
| 22 | } |
| 23 | -- |
| 24 | 2.25.1 |
| 25 | |