api: allow negative value for y in function printf_y