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 # exit early if we should install packages only, used by CI mainly
[[ "$INSTALL_PACKAGES_ONLY" -ne 0 ]] && exit $last_code [[ "$INSTALL_PACKAGES_ONLY" -ne 0 ]] && exit $last_code
echo ; echo echo; echo;
[[ -f "$mycmake" ]] || { [[ -f "$mycmake" ]] || {
@ -137,7 +137,7 @@ set(CMAKE_CXX_COMPILER clang++)
EOL EOL
echo ; echo echo; echo;
############## common CMAKE args ############## ############## common CMAKE args ##############
# https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS_CONFIG.html#variable:CMAKE_%3CLANG%3E_FLAGS_%3CCONFIG%3E # 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 + $?)) last_code=$((last_code + $?))
popd popd
echo ; echo echo; echo;
############## build zlib ############## ############## build zlib ##############
@ -208,7 +208,7 @@ last_code=$((last_code + $?))
eval $clean_gen64 eval $clean_gen64
popd popd
echo ; echo echo; echo;
############## zlib is painful ############## ############## zlib is painful ##############
@ -276,7 +276,7 @@ last_code=$((last_code + $?))
eval $clean_gen64 eval $clean_gen64
popd popd
echo ; echo echo; echo;
############## build protobuf ############## ############## build protobuf ##############
@ -307,7 +307,7 @@ last_code=$((last_code + $?))
eval $clean_gen64 eval $clean_gen64
popd popd
echo ; echo echo; echo;
############## build mbedtls ############## ############## 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 #ifndef EMU_RELEASE_BUILD
// we nedd a live object until the printf does its job, hence this special handling // we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(signature); 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 #endif
return signature; return signature;
@ -297,7 +297,7 @@ public:
#ifndef EMU_RELEASE_BUILD #ifndef EMU_RELEASE_BUILD
// we nedd a live object until the printf does its job, hence this special handling // we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer); 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 #endif
return buffer; return buffer;
@ -408,7 +408,7 @@ struct AppTicket {
{ {
// we nedd a live object until the printf does its job, hence this special handling // we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer); 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 #endif
@ -461,7 +461,7 @@ struct AppTicket {
{ {
// we nedd a live object until the printf does its job, hence this special handling // we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer); 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 #endif
@ -603,7 +603,7 @@ struct Auth_Data {
{ {
// we nedd a live object until the printf does its job, hence this special handling // we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer); 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 #endif
@ -616,7 +616,7 @@ struct Auth_Data {
{ {
// we nedd a live object until the printf does its job, hence this special handling // we nedd a live object until the printf does its job, hence this special handling
auto str = uint8_vector_to_hex_string(buffer); 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 #endif