[comm/sb_shared] Adds a debug function with printf-like formatting.
* See comments in files.