some output formatting

This commit is contained in:
otavepto 2023-12-25 07:20:42 +02:00
parent 1b63208dbf
commit 0766282e00
2 changed files with 12 additions and 12 deletions

View File

@ -76,7 +76,7 @@ last_code=$((last_code + $?))
# exit early if we should install packages only, used by CI mainly
[[ "$INSTALL_PACKAGES_ONLY" -ne 0 ]] && exit $last_code
echo ; echo
echo; echo;
[[ -f "$mycmake" ]] || {
@ -137,7 +137,7 @@ set(CMAKE_CXX_COMPILER clang++)
EOL
echo ; echo
echo; echo;
############## common CMAKE args ##############
# https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS_CONFIG.html#variable:CMAKE_%3CLANG%3E_FLAGS_%3CCONFIG%3E
@ -179,7 +179,7 @@ eval $cmake_build64
last_code=$((last_code + $?))
popd
echo ; echo
echo; echo;
############## build zlib ##############
@ -208,7 +208,7 @@ last_code=$((last_code + $?))
eval $clean_gen64
popd
echo ; echo
echo; echo;
############## zlib is painful ##############
@ -276,7 +276,7 @@ last_code=$((last_code + $?))
eval $clean_gen64
popd
echo ; echo
echo; echo;
############## build protobuf ##############
@ -307,7 +307,7 @@ last_code=$((last_code + $?))
eval $clean_gen64
popd
echo ; echo
echo; echo;
############## build mbedtls ##############

View File

@ -166,7 +166,7 @@ static std::vector<uint8_t> sign_auth_data(const std::string &private_key_conten
#ifndef EMU_RELEASE_BUILD
// we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(signature);
PRINT_DEBUG("sign_auth_data final signature [%zu bytes]: %s\n", signature.size(), str.c_str());
PRINT_DEBUG("sign_auth_data final signature [%zu bytes]:\n %s\n", signature.size(), str.c_str());
#endif
return signature;
@ -297,7 +297,7 @@ public:
#ifndef EMU_RELEASE_BUILD
// we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer);
PRINT_DEBUG("AUTH::AppTicketGC::SER final data [%zu bytes]: %s\n", buffer.size(), str.c_str());
PRINT_DEBUG("AUTH::AppTicketGC::SER final data [%zu bytes]:\n %s\n", buffer.size(), str.c_str());
#endif
return buffer;
@ -408,7 +408,7 @@ struct AppTicket {
{
// we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer);
PRINT_DEBUG("AUTH::AppTicket::SER (before licenses + DLCs): %s\n", str.c_str());
PRINT_DEBUG("AUTH::AppTicket::SER (before licenses + DLCs):\n %s\n", str.c_str());
}
#endif
@ -461,7 +461,7 @@ struct AppTicket {
{
// we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer);
PRINT_DEBUG("AUTH::AppTicket::SER final data [%zu bytes]: %s\n", buffer.size(), str.c_str());
PRINT_DEBUG("AUTH::AppTicket::SER final data [%zu bytes]:\n %s\n", buffer.size(), str.c_str());
}
#endif
@ -603,7 +603,7 @@ struct Auth_Data {
{
// we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer);
PRINT_DEBUG("AUTH::Auth_Data::SER final data (before signature) [%zu bytes]: %s\n", buffer.size(), str.c_str());
PRINT_DEBUG("AUTH::Auth_Data::SER final data (before signature) [%zu bytes]:\n %s\n", buffer.size(), str.c_str());
}
#endif
@ -616,7 +616,7 @@ struct Auth_Data {
{
// we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer);
PRINT_DEBUG("AUTH::Auth_Data::SER final data (after signature) [%zu bytes]: %s\n", buffer.size(), str.c_str());
PRINT_DEBUG("AUTH::Auth_Data::SER final data (after signature) [%zu bytes]:\n %s\n", buffer.size(), str.c_str());
}
#endif