Change the parameter type of smp_debug_print_nbyte_little_endian
* This function used to take (const uint8_t*) as the second parameter and it causes all its calls to cast a (const char*) to this type * This patch changes it to (const char*) so no cast needed Coccinelle-assisted: @ rule1 @ type T; expression A, B, C; @@ smp_debug_print_nbyte_little_endian(A, - (T) B, C); and for file in $(find . -name "*.cc"); do spatch --sp-file refactor_smp_print_func.cocci --in-place $file done Bug: 33663033 Test: code compilation, no user visible effect Change-Id: Ibeed0b414514acc4a8e94e47e99117bdb3e454ff
Loading
Please register or sign in to comment