mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
tdb/test: remove "\n" in diag() arguments
diag() already adds "\n". Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
71fddde836
commit
6871bf689f
@ -153,7 +153,7 @@ int main(int argc, char *argv[])
|
||||
unlock_callback = after_unlock;
|
||||
for (i = 0; i < sizeof(flags)/sizeof(flags[0]); i++) {
|
||||
clear_if_first = (flags[i] & TDB_CLEAR_IF_FIRST);
|
||||
diag("Test with %s and %s\n",
|
||||
diag("Test with %s and %s",
|
||||
clear_if_first ? "CLEAR" : "DEFAULT",
|
||||
(flags[i] & TDB_NOMMAP) ? "no mmap" : "mmap");
|
||||
unlink(TEST_DBNAME);
|
||||
|
@ -53,7 +53,7 @@ static void count_records(TDB_DATA key, TDB_DATA data, void *_wd)
|
||||
struct walk_data *wd = _wd;
|
||||
|
||||
if (!tdb_deq(key, wd->key) || !tdb_deq(data, wd->data))
|
||||
diag("%.*s::%.*s\n",
|
||||
diag("%.*s::%.*s",
|
||||
(int)key.dsize, key.dptr, (int)data.dsize, data.dptr);
|
||||
wd->count++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user