if (!list_empty(&dev->buf_qhead)) {
list_for_each_entry_safe(bufs,
save, &dev->buf_qhead, entry) {
- pr_info("%s: Delete invalid bufs =%lx, session_id=%u, bufs->ses_id=%d, str_id=%d, idx=%d\n",
- __func__, (unsigned long)bufs, session->session,
+ pr_info("%s: Delete invalid bufs =%pK, session_id=%u, bufs->ses_id=%d, str_id=%d, idx=%d\n",
+ __func__, (void *)bufs, session->session,
bufs->session_id, bufs->stream_id,
- bufs->vb2_v4l2_buf->vb2_buf.index);
+ bufs->index);
if (session->session == bufs->session_id) {
list_del_init(&bufs->entry);
kfree(bufs);