From 94426ad3232d5dee2253f94d4bcec0f8eb8a3e03 Mon Sep 17 00:00:00 2001 From: Wilhansen Li Date: Tue, 27 Dec 2016 01:07:08 +0800 Subject: [PATCH] Formatting adjustments. --- dtbSplit.cpp | 1 - dtbTool.c | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dtbSplit.cpp b/dtbSplit.cpp index 1acd5d6..80af0d6 100644 --- a/dtbSplit.cpp +++ b/dtbSplit.cpp @@ -137,7 +137,6 @@ void dumpData(const uint32_t entries, const string &dest, ifstream &dtb) { ofstream output(dest + id.str() + ".dtb", ios::binary); output.write(data.data(), data.size()); } - } int main(int argc, char **argv) { diff --git a/dtbTool.c b/dtbTool.c index 1a23d93..b5dd935 100644 --- a/dtbTool.c +++ b/dtbTool.c @@ -57,8 +57,8 @@ #define RC_SUCCESS 0 #define RC_ERROR -1 -#define INFO_ENTRY_SIZE 16 -#define INFO_ENTRY_SIZE_S "16" +#define INFO_ENTRY_SIZE 16 +#define INFO_ENTRY_SIZE_S "16" #define TABLE_ENTRY_HEADER_SIZE (INFO_ENTRY_SIZE * 3 + sizeof(uint32_t) * 2) struct chipInfo_t { @@ -81,7 +81,7 @@ int page_size = PAGE_SIZE_DEF; int entry_cmp(uint8_t *a, uint8_t *b) { - return memcmp(a, b, INFO_ENTRY_SIZE); + return memcmp(a, b, INFO_ENTRY_SIZE); } uint32_t swap_bytes_u32(uint32_t b) { @@ -401,8 +401,8 @@ int main(int argc, char **argv) } log_info("chipset: %" INFO_ENTRY_SIZE_S "s, " - "platform: %" INFO_ENTRY_SIZE_S "s, " - "rev: %" INFO_ENTRY_SIZE_S "s\n", + "platform: %" INFO_ENTRY_SIZE_S "s, " + "rev: %" INFO_ENTRY_SIZE_S "s\n", chip->chipset, chip->platform, chip->revNum); rc = chip_add(chip); -- 2.20.1