Reimplement probe in C
Print in the correct format
Compatibility with older gcc versions