You can remove the solarus:: namespace qualification here. Also, it would be more helpful to print the sprite name too, that is, tunic_sprite->get_animation_set_id() so that the user knows what sprite he should fix.