clang-10: run clang-format on the repo
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: Id7e57a37990a764a191a4e6c4427ceeda670ef51
diff --git a/libpldm/base.h b/libpldm/base.h
index 870e9d8..dd63f1c 100644
--- a/libpldm/base.h
+++ b/libpldm/base.h
@@ -90,22 +90,22 @@
struct pldm_msg_hdr {
#if defined(__LITTLE_ENDIAN_BITFIELD)
uint8_t instance_id : 5; //!< Instance ID
- uint8_t reserved : 1; //!< Reserved
- uint8_t datagram : 1; //!< Datagram bit
- uint8_t request : 1; //!< Request bit
+ uint8_t reserved : 1; //!< Reserved
+ uint8_t datagram : 1; //!< Datagram bit
+ uint8_t request : 1; //!< Request bit
#elif defined(__BIG_ENDIAN_BITFIELD)
- uint8_t request : 1; //!< Request bit
- uint8_t datagram : 1; //!< Datagram bit
- uint8_t reserved : 1; //!< Reserved
+ uint8_t request : 1; //!< Request bit
+ uint8_t datagram : 1; //!< Datagram bit
+ uint8_t reserved : 1; //!< Reserved
uint8_t instance_id : 5; //!< Instance ID
#endif
#if defined(__LITTLE_ENDIAN_BITFIELD)
- uint8_t type : 6; //!< PLDM type
+ uint8_t type : 6; //!< PLDM type
uint8_t header_ver : 2; //!< Header version
#elif defined(__BIG_ENDIAN_BITFIELD)
- uint8_t header_ver : 2; //!< Header version
- uint8_t type : 6; //!< PLDM type
+ uint8_t header_ver : 2; //!< Header version
+ uint8_t type : 6; //!< PLDM type
#endif
uint8_t command; //!< PLDM command code
} __attribute__((packed));
@@ -125,9 +125,9 @@
* pack_pldm_header and unpack_pldm_header API.
*/
struct pldm_header_info {
- MessageType msg_type; //!< PLDM message type
- uint8_t instance; //!< PLDM instance id
- uint8_t pldm_type; //!< PLDM type
+ MessageType msg_type; //!< PLDM message type
+ uint8_t instance; //!< PLDM instance id
+ uint8_t pldm_type; //!< PLDM type
uint8_t command; //!< PLDM command code
uint8_t completion_code; //!< PLDM completion code, applies for response
};
@@ -147,7 +147,7 @@
* Structure representing PLDM get commands request.
*/
struct pldm_get_commands_req {
- uint8_t type; //!< PLDM Type for which command support information is
+ uint8_t type; //!< PLDM Type for which command support information is
//!< being requested
ver32_t version; //!< version for the specified PLDM Type
} __attribute__((packed));
@@ -183,7 +183,7 @@
uint8_t completion_code; //!< completion code
uint32_t next_transfer_handle; //!< next portion of PLDM version data
//!< transfer
- uint8_t transfer_flag; //!< PLDM GetVersion transfer flag
+ uint8_t transfer_flag; //!< PLDM GetVersion transfer flag
uint8_t version_data[1]; //!< PLDM GetVersion version field
} __attribute__((packed));