diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /networking/interface.c | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'networking/interface.c')
-rw-r--r-- | networking/interface.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/interface.c b/networking/interface.c index 9e6ed63e0..61ce12ef1 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -871,7 +871,7 @@ static int hw_null_address(const struct hwtype *hw, void *ap) | |||
871 | return 1; | 871 | return 1; |
872 | } | 872 | } |
873 | 873 | ||
874 | static const char TRext[] = "\0\0\0Ki\0Mi\0Gi\0Ti"; | 874 | static const char TRext[] ALIGN1 = "\0\0\0Ki\0Mi\0Gi\0Ti"; |
875 | 875 | ||
876 | static void print_bytes_scaled(unsigned long long ull, const char *end) | 876 | static void print_bytes_scaled(unsigned long long ull, const char *end) |
877 | { | 877 | { |
@@ -1020,7 +1020,7 @@ static void ife_print(struct interface *ptr) | |||
1020 | if (ptr->flags == 0) { | 1020 | if (ptr->flags == 0) { |
1021 | printf("[NO FLAGS] "); | 1021 | printf("[NO FLAGS] "); |
1022 | } else { | 1022 | } else { |
1023 | static const char ife_print_flags_strs[] = | 1023 | static const char ife_print_flags_strs[] ALIGN1 = |
1024 | "UP\0" | 1024 | "UP\0" |
1025 | "BROADCAST\0" | 1025 | "BROADCAST\0" |
1026 | "DEBUG\0" | 1026 | "DEBUG\0" |
@@ -1038,7 +1038,7 @@ static void ife_print(struct interface *ptr) | |||
1038 | "DYNAMIC\0" | 1038 | "DYNAMIC\0" |
1039 | #endif | 1039 | #endif |
1040 | ; | 1040 | ; |
1041 | static const unsigned short ife_print_flags_mask[] = { | 1041 | static const unsigned short ife_print_flags_mask[] ALIGN2 = { |
1042 | IFF_UP, | 1042 | IFF_UP, |
1043 | IFF_BROADCAST, | 1043 | IFF_BROADCAST, |
1044 | IFF_DEBUG, | 1044 | IFF_DEBUG, |
@@ -1051,9 +1051,9 @@ static void ife_print(struct interface *ptr) | |||
1051 | IFF_ALLMULTI, | 1051 | IFF_ALLMULTI, |
1052 | IFF_SLAVE, | 1052 | IFF_SLAVE, |
1053 | IFF_MASTER, | 1053 | IFF_MASTER, |
1054 | IFF_MULTICAST, | 1054 | IFF_MULTICAST |
1055 | #ifdef HAVE_DYNAMIC | 1055 | #ifdef HAVE_DYNAMIC |
1056 | IFF_DYNAMIC, | 1056 | ,IFF_DYNAMIC |
1057 | #endif | 1057 | #endif |
1058 | }; | 1058 | }; |
1059 | const unsigned short *mask = ife_print_flags_mask; | 1059 | const unsigned short *mask = ife_print_flags_mask; |