Fix typo.
Avoid building test functions.
Wrap print_buf as C code.