Minor fix in log_commit() w.r.t. changes in BFD branch.

This commit is contained in:
Ondrej Zajicek 2013-11-22 21:58:43 +01:00
parent 1fba34a7a1
commit 56027b5cbd
2 changed files with 5 additions and 3 deletions

View file

@ -267,7 +267,7 @@ pair set ps;
ec set ecs; ec set ecs;
ip set ips; ip set ips;
prefix set pxs; prefix set pxs;
string s; string st;
{ {
print "1a-a1 = 30: ", '1a-a1'; print "1a-a1 = 30: ", '1a-a1';
print "Testing filter language:"; print "Testing filter language:";
@ -352,8 +352,8 @@ string s;
print "Testing EC set, false: ", (ro, 10, 20) ~ ecs, " ", (rt, 10, 21) ~ ecs, " ", (ro, 100000, 99) ~ ecs, print "Testing EC set, false: ", (ro, 10, 20) ~ ecs, " ", (rt, 10, 21) ~ ecs, " ", (ro, 100000, 99) ~ ecs,
" ", (ro, 12345, 10) ~ ecs, " ", (rt, 12346, 0) ~ ecs, " ", (ro, 0.1.134.160, 150) ~ ecs; " ", (ro, 12345, 10) ~ ecs, " ", (rt, 12346, 0) ~ ecs, " ", (ro, 0.1.134.160, 150) ~ ecs;
s = "Hello"; st = "Hello";
print "Testing string: ", s, " true: ", s ~ "Hell*", " false: ", s ~ "ell*"; print "Testing string: ", st, " true: ", st ~ "Hell*", " false: ", st ~ "ell*";
b = true; b = true;
print "Testing bool: ", b, ", ", !b; print "Testing bool: ", b, ", ", !b;

View file

@ -130,6 +130,8 @@ log_commit(int class, buffer *buf)
/* FIXME: cli_echo is not thread-safe */ /* FIXME: cli_echo is not thread-safe */
cli_echo(class, buf->start); cli_echo(class, buf->start);
buf->pos = buf->start;
} }
int buffer_vprint(buffer *buf, const char *fmt, va_list args); int buffer_vprint(buffer *buf, const char *fmt, va_list args);