Commit 3920d6b3 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] altera-ci.c: fix compiler warnings

drivers/media/video/cx23885/altera-ci.c: In function 'altera_hw_filt_init':
drivers/media/video/cx23885/altera-ci.c:671:2: warning: cast from pointer to integer of different size
drivers/media/video/cx23885/altera-ci.c: In function 'altera_ci_init':
drivers/media/video/cx23885/altera-ci.c:739:2: warning: cast from pointer to integer of different size

Use %p instead of 0x%x to print addresses.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent fb661a78
...@@ -668,8 +668,8 @@ int altera_hw_filt_init(struct altera_ci_config *config, int hw_filt_nr) ...@@ -668,8 +668,8 @@ int altera_hw_filt_init(struct altera_ci_config *config, int hw_filt_nr)
ci_dbg_print("%s: Create New Internal Structure!\n", __func__); ci_dbg_print("%s: Create New Internal Structure!\n", __func__);
} }
ci_dbg_print("%s: setting hw pid filter = 0x%x for ci = %d\n", __func__, ci_dbg_print("%s: setting hw pid filter = %p for ci = %d\n", __func__,
(int)pid_filt, hw_filt_nr - 1); pid_filt, hw_filt_nr - 1);
inter->pid_filt[hw_filt_nr - 1] = pid_filt; inter->pid_filt[hw_filt_nr - 1] = pid_filt;
pid_filt->demux = config->demux; pid_filt->demux = config->demux;
pid_filt->internal = inter; pid_filt->internal = inter;
...@@ -736,8 +736,8 @@ int altera_ci_init(struct altera_ci_config *config, int ci_nr) ...@@ -736,8 +736,8 @@ int altera_ci_init(struct altera_ci_config *config, int ci_nr)
ci_dbg_print("%s: Create New Internal Structure!\n", __func__); ci_dbg_print("%s: Create New Internal Structure!\n", __func__);
} }
ci_dbg_print("%s: setting state = 0x%x for ci = %d\n", __func__, ci_dbg_print("%s: setting state = %p for ci = %d\n", __func__,
(int)state, ci_nr - 1); state, ci_nr - 1);
inter->state[ci_nr - 1] = state; inter->state[ci_nr - 1] = state;
state->internal = inter; state->internal = inter;
state->nr = ci_nr - 1; state->nr = ci_nr - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment