9777744cda
Apparently some compilers complain about set but not used variables 'available' and 'bufs', but I don't get the warning. Still, separate the debugging code from shm_surface_buffer_release(), so that we only compute 'bufs' when it is printed. This should fix the warnings. The debugging code now prints the shm_surface buffer state before and after, instead of just after. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>