]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
libsystemd-network/sd-lldp-tx: use SD_JSON_BUILD_PAIR_ID128
authorMike Yuan <me@yhndnzj.com>
Sun, 5 Oct 2025 22:19:57 +0000 (00:19 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 22 Oct 2025 12:44:50 +0000 (14:44 +0200)
src/libsystemd-network/sd-lldp-tx.c

index b836081d93c3f8a57bf9000162a0cc045cb67252..e8e1ea10f33f60082416f0b58de5b93a858f1f7e 100644 (file)
@@ -713,7 +713,7 @@ int sd_lldp_tx_describe(sd_lldp_tx *lldp_tx, sd_json_variant **ret) {
 
         return sd_json_buildo(
                         ret,
-                        SD_JSON_BUILD_PAIR_STRING("ChassisID", SD_ID128_TO_STRING(machine_id)),
+                        SD_JSON_BUILD_PAIR_ID128("ChassisID", machine_id),
                         SD_JSON_BUILD_PAIR_BYTE_ARRAY("RawChassisID", chassis_id, chassis_id_len),
                         SD_JSON_BUILD_PAIR_STRING("PortID", lldp_tx->ifname),
                         SD_JSON_BUILD_PAIR_BYTE_ARRAY("RawPortID", port_id, port_id_len),