NetworkManager/src/nm-cloud-setup
Beniamino Galvani 9188c9fa9b cloud-setup: fix format string
On a i686 machine the build fails with:

../src/nm-cloud-setup/main.c: In function ‘_oci_new_vlan_dev’:
../src/nm-cloud-setup/main.c:800:47: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘gssize’ {aka ‘int’} [-Werror=format=]
  800 |     macvlan_name  = g_strdup_printf("macvlan%ld", config_data->iface_idx);
      |                                             ~~^   ~~~~~~~~~~~~~~~~~~~~~~
      |                                               |              |
      |                                               long int       gssize {aka int}
      |                                             %d
../src/nm-cloud-setup/main.c:801:42: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘gssize’ {aka ‘int’} [-Werror=format=]
  801 |     connection_id = g_strdup_printf("%s%ld", connection_type, config_data->iface_idx);
      |                                        ~~^                    ~~~~~~~~~~~~~~~~~~~~~~
      |                                          |                               |
      |                                          long int                        gssize {aka int}
      |                                        %d

Fixes: 68d7e17737 ('Reapply "cloud-setup: create VLANs for multiple VNICs on OCI"')
(cherry picked from commit 748be9a3e7)
2026-02-12 11:53:49 +01:00
..
tests format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
90-nm-cloud-setup.sh cloud-setup: add pre-up event to prevent reaching network-online.target 2023-06-09 09:18:20 -04:00
main.c cloud-setup: fix format string 2026-02-12 11:53:49 +01:00
meson.build cloud-setup: Add OCI (Oracle Cloud) provider 2024-10-24 16:14:48 +02:00
nm-cloud-setup-utils.c cloud-setup: configure disconnected wired devices on OCI 2025-04-11 11:44:05 +02:00
nm-cloud-setup-utils.h cloud-setup: add a chicken bit variable for creation of new connections 2025-04-11 11:43:28 +02:00
nm-cloud-setup.service.in cloud-setup: Add OCI (Oracle Cloud) provider 2024-10-24 16:14:48 +02:00
nm-cloud-setup.timer cloud-setup: move from "clients/cloud-setup/" to "src/nm-cloud-setup/" 2021-03-15 17:10:53 +01:00
nm-http-client.c format: run nm-code-format 2024-10-04 11:07:35 +02:00
nm-http-client.h cloud-setup: make nm_http_client_req() accept a method argument 2023-03-07 13:54:03 +01:00
nmcs-provider-aliyun.c cloud-setup: move implementation of getters for base URL to macro 2023-05-22 17:26:18 +02:00
nmcs-provider-aliyun.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-azure.c format: run nm-code-format 2024-10-04 11:07:35 +02:00
nmcs-provider-azure.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-ec2.c cloud-setup: move implementation of getters for base URL to macro 2023-05-22 17:26:18 +02:00
nmcs-provider-ec2.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-gcp.c format: run nm-code-format 2024-10-04 11:07:35 +02:00
nmcs-provider-gcp.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-oci.c nm-cloud-setup: removed excess validation check fields 2025-04-07 15:25:49 +02:00
nmcs-provider-oci.h cloud-setup: Add OCI (Oracle Cloud) provider 2024-10-24 16:14:48 +02:00
nmcs-provider.c Reapply "cloud-setup: parse OCI metadata related to VLAN config" 2025-02-26 13:29:57 +01:00
nmcs-provider.h Reapply "cloud-setup: parse OCI metadata related to VLAN config" 2025-02-26 13:29:57 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

nm-cloud-setup

A NetworkManager client application that aims to automatically configure the network in a cloud environment.

See:

  • man 8 nm-cloud-setup ([www])