Removed unused #define. Corrected format of a use of snprintf.