diff options
| author | Jorge Ruesga <jorge@ruesga.com> | 2012-11-24 11:35:40 -0800 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | 2012-11-24 11:35:40 -0800 |
| commit | 59ff57809306f1f72d55056840148b692dcfe8f2 (patch) | |
| tree | 2f562aa3d906c9150061fde731bc466a224e82e9 | |
| parent | 4ac8d65b269ea6cedaf4cec91d97fbd7be131eb7 (diff) | |
| parent | fe8cd27edcc7a7533cd0d18fdea5c6bee25e823e (diff) | |
| download | android_packages_apps_CMFileManager-59ff57809306f1f72d55056840148b692dcfe8f2.tar.gz android_packages_apps_CMFileManager-59ff57809306f1f72d55056840148b692dcfe8f2.tar.bz2 android_packages_apps_CMFileManager-59ff57809306f1f72d55056840148b692dcfe8f2.zip | |
Merge "CMFileManager: Formatting" into jellybean
| -rw-r--r-- | src/com/cyanogenmod/filemanager/commands/shell/Shell.java | 11 |
1 files 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 779796d7..36b89fdd 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.InsufficientPermissionsException; 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 <code>sh</code> or <code>su</code> 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 <code>Shell</code> @@ -75,7 +75,10 @@ public abstract class Shell extends Command { 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 |
