working testbed printf