projects
/
GitHub
/
LineageOS
/
G12
/
android_hardware_amlogic_tools_dtbtool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c6487
)
Fix formatting.
author
Wilhansen Li
<wil@byimplication.com>
Mon, 26 Dec 2016 17:30:36 +0000
(
01:30
+0800)
committer
Wilhansen Li
<wil@byimplication.com>
Mon, 26 Dec 2016 17:30:36 +0000
(
01:30
+0800)
dtbTool.c
patch
|
blob
|
blame
|
history
diff --git
a/dtbTool.c
b/dtbTool.c
index b5dd93514a47d94c7fc41f04b0a1e723227aeac1..9b283968c3c2f7078eab4fc4264874ca0334c9ce 100644
(file)
--- a/
dtbTool.c
+++ b/
dtbTool.c
@@
-84,15
+84,18
@@
int entry_cmp(uint8_t *a, uint8_t *b)
return memcmp(a, b, INFO_ENTRY_SIZE);
}
-uint32_t swap_bytes_u32(uint32_t b) {
+uint32_t swap_bytes_u32(uint32_t b)
+{
return ((b & 0xFF000000) >> 24) |
((b & 0x00FF0000) >> 8) |
((b & 0x0000FF00) << 8) |
(b << 24);
}
-void padSpaces(uint8_t *s, int sz) {
+void padSpaces(uint8_t *s, int sz)
+{
--sz;
- while ( sz >= 0 && s[sz] == 0 ) {
+ while ( sz >= 0 && s[sz] == 0 )
+ {
s[sz] = 0x20;
--sz;
}