Put back original SM headers.
Replace snprintf by UTIL_Format.
Fix wrong log error message.
Fix documentation.