diff options
author | Patrick Venture <venture@google.com> | 2018-08-31 11:55:55 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-07 23:45:41 +0000 |
commit | 0b02be925a29357f69abbc9e9a58e7c5aaed2eab (patch) | |
tree | c1b39f817d98ffda7b987f9e3f864f576e3bf9ea /groupext.cpp | |
parent | 26f80ab2cc41deadc913190d906f71266c4ed224 (diff) | |
download | phosphor-host-ipmid-0b02be925a29357f69abbc9e9a58e7c5aaed2eab.tar.gz phosphor-host-ipmid-0b02be925a29357f69abbc9e9a58e7c5aaed2eab.zip |
add .clang-format
Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'groupext.cpp')
-rw-r--r-- | groupext.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/groupext.cpp b/groupext.cpp index 1166a3e..0d8bfe0 100644 --- a/groupext.cpp +++ b/groupext.cpp @@ -1,18 +1,20 @@ -#include "host-ipmid/ipmid-api.h" #include "ipmid.hpp" -#include <stdio.h> + #include <stdint.h> +#include <stdio.h> + +#include "host-ipmid/ipmid-api.h" #define GRPEXT_GET_GROUP_CMD 0 void register_netfn_groupext_functions() __attribute__((constructor)); ipmi_ret_t ipmi_groupext(ipmi_netfn_t netfn, ipmi_cmd_t cmd, - ipmi_request_t request, ipmi_response_t response, - ipmi_data_len_t data_len, ipmi_context_t context) + ipmi_request_t request, ipmi_response_t response, + ipmi_data_len_t data_len, ipmi_context_t context) { - // Generic return from IPMI commands. + // Generic return from IPMI commands. ipmi_ret_t rc = IPMI_CC_OK; - uint8_t *p = (uint8_t*) response; + uint8_t* p = (uint8_t*)response; printf("IPMI GROUP EXTENSIONS\n"); @@ -25,8 +27,8 @@ ipmi_ret_t ipmi_groupext(ipmi_netfn_t netfn, ipmi_cmd_t cmd, void register_netfn_groupext_functions() { // <Group Extension Command> - ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL, ipmi_groupext, - PRIVILEGE_USER); + ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL, + ipmi_groupext, PRIVILEGE_USER); return; } |