astyle --recursive --indent=spaces=2 --style=kr --indent-col1-comments --break-blocks --convert-tabs --max-code-length=200

This is done for better merging branch/LG_PRE_RELEASE_0.3 into trunk (same process is applied on this branch)

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7073 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Lionel Gauthier
2015-04-09 09:29:12 +00:00
parent f0a8a0b3b5
commit 059a0a3fdc
2044 changed files with 1182666 additions and 1145123 deletions
+12 -4
View File
@@ -58,26 +58,30 @@ void util_print_hex_octets(comp_name_t component, unsigned char* data, unsigned
LOG_T(component, " | 0 1 2 3 4 5 6 7 8 9 a b c d e f |\n");
LOG_T(component, "-----+-------------------------------------------------|\n");
LOG_T(component, " 000 |");
for (octet_index = 0; octet_index < size; ++octet_index) {
/*
* Print every single octet in hexadecimal form
*/
LOG_T(component, "%02x.", data[octet_index]);
/*
* Align newline and pipes according to the octets in groups of 2
*/
if (octet_index != 0 && (octet_index + 1) % 16 == 0) {
LOG_T(component, " |\n");
LOG_T(component, " %03d |", octet_index);
}
}
}
/*
* Append enough spaces and put final pipe
*/
unsigned char index;
for (index = octet_index; index < 16; ++index)
LOG_T(component, " ");
LOG_T(component, " \n");
}
@@ -87,19 +91,22 @@ void util_flush_hex_octets(comp_name_t component, unsigned char* data, unsigned
LOG_W(component, "Incoming buffer is NULL! Ignoring...\n");
return;
}
printf("[PDCP]");
unsigned long octet_index = 0;
for (octet_index = 0; octet_index < size; ++octet_index) {
//LOG_T(component, "%02x.", data[octet_index]);
printf("%02x.", data[octet_index]);
//LOG_T(component, "%02x.", data[octet_index]);
printf("%02x.", data[octet_index]);
}
//LOG_T(component, " \n");
printf(" \n");
}
/*
* Prints binary representation of given octet prepending
* Prints binary representation of given octet prepending
* passed log message
*
* @param Octet as an unsigned character
@@ -121,6 +128,7 @@ void util_print_binary_representation(unsigned char* message, uint8_t octet)
mask /= 2;
}
LOG_T(PDCP, "\n");
}