libsystemd-network/sd-lldp-tx: use SD_JSON_BUILD_PAIR_ID128

This commit is contained in:
Mike Yuan
2025-10-06 00:19:57 +02:00
parent b38dc56bab
commit fbc9f0dd4e

View 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),