summaryrefslogtreecommitdiff
authorDeng Zhenrong <dzrongg@gmail.com>2012-03-22 13:52:12 (GMT)
committer David Henningsson <david.henningsson@canonical.com>2012-03-23 09:37:23 (GMT)
commit737a6180d44c3f4dbe9def42e38c47665b28af15 (patch) (side-by-side diff)
tree7a369f1ac9531f255a9b4eea43fb7470b0e19f1b
parent4502d7cb2866ccc8a7b96d519d4179892dbc3690 (diff)
downloadpulseaudio-737a6180d44c3f4dbe9def42e38c47665b28af15.zip
pulseaudio-737a6180d44c3f4dbe9def42e38c47665b28af15.tar.gz
fix compilation warning via PRI prefix
modules/alsa/alsa-mixer.c:3110:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'pa_channel_position_mask_t' [-Wformat] modules/alsa/alsa-mixer.c:3110:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'pa_channel_position_mask_t' [-Wformat] pa_channel_position_mask_t is type defined to uint64_t, and to display uint64_t, it's better to use PRIx64 primitives. Signed-off-by: Deng Zhenrong <dzrongg@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/modules/alsa/alsa-mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index 102ec82..2e768e9 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -3107,7 +3107,7 @@ static pa_bool_t element_is_subset(pa_alsa_element *a, pa_alsa_element *b, snd_m
return FALSE;
for (s = 0; s < SND_MIXER_SCHN_LAST; s++)
if (a->masks[s][a->n_channels-1] != b->masks[s][b->n_channels-1]) {
- pa_log_debug("Element %s is not a subset - mask a: 0x%lx, mask b: 0x%lx, at channel %d",
+ pa_log_debug("Element %s is not a subset - mask a: 0x%" PRIx64 ", mask b: 0x%" PRIx64 ", at channel %d",
a->alsa_name, a->masks[s][a->n_channels-1], b->masks[s][b->n_channels-1], s);
return FALSE;
}