libpldm: Change hexadecimal literals to lowercase
As per a comment at [1].
The change was generated with the following:
```
sed -Ei 's/0[xX]([0-9]*[A-F][0-9]*)+/\L\0/g' $(git ls-files)
```
[1]: https://gerrit.openbmc.org/c/openbmc/libpldm/+/69192
Change-Id: Ib0a41dfaf626aec3167e773262883f9c1de797b2
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/src/pdr.c b/src/pdr.c
index ab35d2a..5109d6a 100644
--- a/src/pdr.c
+++ b/src/pdr.c
@@ -515,7 +515,7 @@
return pldm_entity_association_tree_add_entity(tree, entity,
entity_instance_number,
parent, association_type,
- false, true, 0xFFFF);
+ false, true, 0xffff);
}
LIBPLDM_ABI_STABLE
@@ -529,7 +529,7 @@
return NULL;
}
- if (entity_instance_number != 0xFFFF && parent != NULL) {
+ if (entity_instance_number != 0xffff && parent != NULL) {
pldm_entity node;
node.entity_type = entity->entity_type;
node.entity_instance_num = entity_instance_number;
@@ -552,7 +552,7 @@
node->parent.entity_container_id = 0;
node->entity.entity_type = entity->entity_type;
node->entity.entity_instance_num =
- entity_instance_number != 0xFFFF ? entity_instance_number : 1;
+ entity_instance_number != 0xffff ? entity_instance_number : 1;
node->association_type = association_type;
node->remote_container_id = 0;
if (tree->root == NULL) {
@@ -578,7 +578,7 @@
node->remote_container_id = entity->entity_container_id;
}
if (is_update_container_id) {
- if (container_id != 0xFFFF) {
+ if (container_id != 0xffff) {
node->entity.entity_container_id = container_id;
} else {
node->entity.entity_container_id =
@@ -609,7 +609,7 @@
return NULL;
}
node->entity.entity_instance_num =
- entity_instance_number != 0xFFFF ?
+ entity_instance_number != 0xffff ?
entity_instance_number :
prev->entity.entity_instance_num + 1;
}
diff --git a/src/platform.c b/src/platform.c
index a614ce5..1bd7889 100644
--- a/src/platform.c
+++ b/src/platform.c
@@ -956,7 +956,7 @@
}
if (!(((*transfer_operation_flag == PLDM_GET_NEXTPART) &&
- (*event_id_to_acknowledge == 0xFFFF)) ||
+ (*event_id_to_acknowledge == 0xffff)) ||
((*transfer_operation_flag == PLDM_GET_FIRSTPART) &&
(*event_id_to_acknowledge == 0x000)) ||
(*transfer_operation_flag == PLDM_ACKNOWLEDGEMENT_ONLY))) {
@@ -1090,7 +1090,7 @@
}
if (event_class > PLDM_HEARTBEAT_TIMER_ELAPSED_EVENT &&
- !(event_class >= 0xF0 && event_class <= 0xFE)) {
+ !(event_class >= 0xf0 && event_class <= 0xfe)) {
return PLDM_ERROR_INVALID_DATA;
}