Use debug macros in test.c

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
local backend: Added read_attr/write_attr ops

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>