OSDN Git Service

Revert "toybox: Fix build of static executable"
[android-x86/external-toybox.git] / toys / android / getprop.c
index cd2c238..efb1e44 100644 (file)
@@ -54,7 +54,7 @@ static void add_property(char *name, char *value, void *unused)
 }
 
 // Needed to supress extraneous "Loaded property_contexts from" message
-int selinux_log_callback_quiet(int type, const char *fmt, ...) {
+int selinux_log_callback(int type, const char *fmt, ...) {
   va_list ap;
 
   if (type == SELINUX_INFO) return 0;
@@ -69,7 +69,7 @@ void getprop_main(void)
   if (toys.optflags & FLAG_Z) {
     union selinux_callback cb;
 
-    cb.func_log = selinux_log_callback_quiet;
+    cb.func_log = selinux_log_callback;
     selinux_set_callback(SELINUX_CB_LOG, cb);
     TT.handle = selinux_android_prop_context_handle();
     if (!TT.handle) error_exit("unable to get selinux property context handle");