Skip to content

Commit

Permalink
'sim_log.c' should be self-contain. Drop using clip() in slogv()
Browse files Browse the repository at this point in the history
  • Loading branch information
jfzheng committed Jan 25, 2016
1 parent 97e3e69 commit e55641f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsim/sim_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ int slogv(slog_t *sl, int level, const char *prompt, const char *fmt, va_list ap
{
FILE *fp = 0;
if (sl->b_inited) {
level = clip(level, SLOG_NON, SLOG_ALL);
//level = clip(level, SLOG_NON, SLOG_ALL);
level = (level<SLOG_NON) ? SLOG_NON : level;
level = (level>SLOG_ALL) ? SLOG_ALL : level;
fp = sl->fp[level];
} else {
fp = (level <= SLOG_ERR) ? stderr : stdout;
Expand Down

0 comments on commit e55641f

Please sign in to comment.