char *get_prompt(void) { static char prompt[MAX_CLI_PROMT]; snprintf(prompt, MAX_CLI_PROMT - 1, "%s B%ld > ", UT_sprint_time_stamp(), my_pid); return prompt; }
char * get_prompt (void) { static char prompt[MAX_CLI_PROMT]; snprintf (prompt, MAX_CLI_PROMT - 1, "%s Mngr > ", UT_sprint_time_stamp (0)); return prompt; }
void trunk_trace (const char *format, ...) { #define MAX_MSG_LEN 128 char msg[MAX_MSG_LEN]; va_list args; va_start (args, format); vsprintf (msg, format, args); printf("\r\n[%s]%s", UT_sprint_time_stamp (0), msg); va_end (args); }
char *sprint_time_stump(void) { return UT_sprint_time_stamp(); }