Esempio n. 1
0
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;
}
Esempio n. 2
0
File: mngr.c Progetto: jiangli/lacp
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;
}
Esempio n. 3
0
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);
}
Esempio n. 4
0
char *sprint_time_stump(void)
{
	return UT_sprint_time_stamp();
}