summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-11-17 20:25:28 +0100
committerChih-Hung Hsieh <chh@google.com>2014-11-20 15:24:46 -0800
commit09993f768bcb6dd9ed76b5c655da2ad9d0ad8396 (patch)
treefd10f5ffc634e0d574f269f7fd2f18b742f6e1d1 /cmds/bootanimation
parent8e357bf54173c3f83584c10983392f0d87e0b2b3 (diff)
downloadframeworks_base-09993f768bcb6dd9ed76b5c655da2ad9d0ad8396.zip
frameworks_base-09993f768bcb6dd9ed76b5c655da2ad9d0ad8396.tar.gz
frameworks_base-09993f768bcb6dd9ed76b5c655da2ad9d0ad8396.tar.bz2
Fix format strings mismatching the parameters passed to them
Change-Id: Ia0d33aec9edadac60508fb422e0821e6d8f28afa Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'cmds/bootanimation')
-rw-r--r--cmds/bootanimation/AudioPlayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/bootanimation/AudioPlayer.cpp b/cmds/bootanimation/AudioPlayer.cpp
index 459190f..ec86afb 100644
--- a/cmds/bootanimation/AudioPlayer.cpp
+++ b/cmds/bootanimation/AudioPlayer.cpp
@@ -98,16 +98,16 @@ static bool setMixerValue(struct mixer* mixer, const char* name, const char* val
ALOGE("mixer_ctl_set_value failed for %s %d", name, intValue);
}
} else {
- ALOGE("Could not parse %s as int for %d", intValue, name);
+ ALOGE("Could not parse %s as int for %s", values, name);
}
break;
case MIXER_CTL_TYPE_ENUM:
if (sscanf(values, "%s", stringValue) == 1) {
if (mixer_ctl_set_enum_by_string(ctl, stringValue) != 0) {
- ALOGE("mixer_ctl_set_enum_by_string failed for %s %%s", name, stringValue);
+ ALOGE("mixer_ctl_set_enum_by_string failed for %s %s", name, stringValue);
}
} else {
- ALOGE("Could not parse %s as enum for %d", stringValue, name);
+ ALOGE("Could not parse %s as enum for %s", values, name);
}
break;
default: