From 37657342d866c5c29f45f6c538f11921be874e76 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Tue, 8 Dec 2020 11:11:28 -0800 Subject: [PATCH] Minor refactoring on String formatting. Test: manual verification using KitchenSink on automotive Bug: 174675990 Change-Id: Ia9175272d1ee504363e317f2adf0c201f17f3923 --- .../server/devicepolicy/DevicePolicyManagerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java index c7dbf95b2d2bc..3386cd9164bc7 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -6118,8 +6118,8 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { int userId = admin != null ? admin.getUserHandle().getIdentifier() : caller.getUserId(); - Slog.i(LOG_TAG, "wipeDataWithReason(" + wipeReasonForUser + "): admin=" + admin + ", user=" - + userId); + Slog.i(LOG_TAG, String.format("wipeDataWithReason(%s): admin=%s, user=%d", + wipeReasonForUser, admin, userId)); if (calledByProfileOwnerOnOrgOwnedDevice) { // When wipeData is called on the parent instance, it implies wiping the entire device. if (calledOnParentInstance) {