Revert "binder: Stub out debug prints by default"

This reverts commit a5a9c1ce0a7007daf800baa469de167757c04a24.

Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Nauval Rizky 2022-03-09 03:35:22 +07:00 committed by azrim
parent b75e5c4ee1
commit aae19102bb
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -146,7 +146,6 @@ static int binder_set_stop_on_user_error(const char *val,
module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
param_get_int, &binder_stop_on_user_error, 0644);
#ifdef DEBUG
#define binder_debug(mask, x...) \
do { \
if (binder_debug_mask & mask) \
@ -160,16 +159,6 @@ module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
if (binder_stop_on_user_error) \
binder_stop_on_user_error = 2; \
} while (0)
#else
static inline void binder_debug(uint32_t mask, const char *fmt, ...)
{
}
static inline void binder_user_error(const char *fmt, ...)
{
if (binder_stop_on_user_error)
binder_stop_on_user_error = 2;
}
#endif
#define to_flat_binder_object(hdr) \
container_of(hdr, struct flat_binder_object, hdr)