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]

Use cast to unsigned long long and %llx to fix this issue.

Signed-off-by: Deng Zhenrong <[email protected]>
---
 src/modules/alsa/alsa-mixer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index 102ec82..96f1643 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -3107,8 +3107,8 @@ 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",
-                        a->alsa_name, a->masks[s][a->n_channels-1], 
b->masks[s][b->n_channels-1], s);
+                    pa_log_debug("Element %s is not a subset - mask a: 0x%llx, 
mask b: 0x%llx, at channel %d",
+                        a->alsa_name, (unsigned long 
long)a->masks[s][a->n_channels-1], (unsigned long 
long)b->masks[s][b->n_channels-1], s);
                     return FALSE;
                }
         }
-- 
1.7.6.5

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to