From fe8cd27edcc7a7533cd0d18fdea5c6bee25e823e Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sat, 24 Nov 2012 20:31:09 +0100 Subject: [PATCH] CMFileManager: Formatting Change-Id: Ia3e72bdad1882afbb151d2f04340a1af88c20682 --- .../cyanogenmod/filemanager/commands/shell/Shell.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/com/cyanogenmod/filemanager/commands/shell/Shell.java b/src/com/cyanogenmod/filemanager/commands/shell/Shell.java index 779796d77..36b89fddc 100644 --- a/src/com/cyanogenmod/filemanager/commands/shell/Shell.java +++ b/src/com/cyanogenmod/filemanager/commands/shell/Shell.java @@ -16,6 +16,8 @@ package com.cyanogenmod.filemanager.commands.shell; +import android.util.Log; + import com.cyanogenmod.filemanager.commands.SyncResultExecutable; import com.cyanogenmod.filemanager.commands.WritableExecutable; import com.cyanogenmod.filemanager.console.CommandNotFoundException; @@ -24,8 +26,6 @@ import com.cyanogenmod.filemanager.console.NoSuchFileOrDirectory; import com.cyanogenmod.filemanager.console.ReadOnlyFilesystemException; -import android.util.Log; - /** * An abstract class that represents a command to wrap others commands, * like sh or su commands. @@ -34,7 +34,7 @@ public abstract class Shell extends Command { private int mPid; - private final String TAG = "Shell"; + private final static String TAG = "Shell"; //$NON-NLS-1$ /** * @Constructor of Shell @@ -75,7 +75,10 @@ public void checkExitCode(int exitCode) throws InsufficientPermissionsException, CommandNotFoundException, ExecutionException { //Command not found if (exitCode == 127) { - Log.w(TAG, getCommand() + " " + getArguments() + ": error"); + Log.w(TAG, String.format( + "CommandNotFound: %s %s", //$NON-NLS-1$ + getCommand(), + getArguments())); throw new CommandNotFoundException(getId()); } //No exit code