From 5b03d97ca133b1da84d4e7c5d7033cfe0d456233 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 20 Jul 2010 19:14:54 +0200 Subject: [PATCH] Tweak add sm_dump comments in debug code --- bacula/src/lib/alist.c | 2 +- bacula/src/lib/dlist.c | 6 ++---- bacula/src/lib/guid_to_name.c | 5 ++--- bacula/src/lib/htable.c | 6 ++---- bacula/src/lib/rblist.c | 28 +++++++++++++--------------- 5 files changed, 20 insertions(+), 27 deletions(-) diff --git a/bacula/src/lib/alist.c b/bacula/src/lib/alist.c index 7b53dfe8bc..26c19051e9 100644 --- a/bacula/src/lib/alist.c +++ b/bacula/src/lib/alist.c @@ -204,7 +204,7 @@ int main() delete mlist; - sm_dump(false); + sm_dump(false); /* test program */ } #endif diff --git a/bacula/src/lib/dlist.c b/bacula/src/lib/dlist.c index 3f17a7d853..d015fb6272 100644 --- a/bacula/src/lib/dlist.c +++ b/bacula/src/lib/dlist.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2003-2007 Free Software Foundation Europe e.V. + Copyright (C) 2003-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -33,8 +33,6 @@ * * Kern Sibbald, July MMIII * - * Version $Id$ - * */ #include "bacula.h" @@ -550,7 +548,7 @@ int main() printf("destroy dlistString chain\n"); chain.destroy(); - sm_dump(false); + sm_dump(false); /* unit test */ } #endif diff --git a/bacula/src/lib/guid_to_name.c b/bacula/src/lib/guid_to_name.c index e407c2247d..9ce954a7c0 100644 --- a/bacula/src/lib/guid_to_name.c +++ b/bacula/src/lib/guid_to_name.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007 Kern Sibbald + Copyright (C) 2007-2010 Kern Sibbald The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -31,7 +31,6 @@ * Program to convert uid and gid into names, and cache the results * for preformance reasons. * - * Version $Id$ */ #include "bacula.h" @@ -199,7 +198,7 @@ int main() } free_guid_list(list); - sm_dump(false); + sm_dump(false); /* unit test */ return 0; } diff --git a/bacula/src/lib/htable.c b/bacula/src/lib/htable.c index ee56f875a4..850a721060 100644 --- a/bacula/src/lib/htable.c +++ b/bacula/src/lib/htable.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2003-2008 Free Software Foundation Europe e.V. + Copyright (C) 2003-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -46,8 +46,6 @@ * * Kern Sibbald, July MMIII * - * Version $Id$ - * */ #include "bacula.h" @@ -432,7 +430,7 @@ int main() free(jcrtbl); printf("Freed jcrtbl\n"); - sm_dump(false); + sm_dump(false); /* unit test */ } #endif diff --git a/bacula/src/lib/rblist.c b/bacula/src/lib/rblist.c index 8cceece0af..5d16a8a83c 100644 --- a/bacula/src/lib/rblist.c +++ b/bacula/src/lib/rblist.c @@ -1,20 +1,7 @@ -/* - * Bacula red-black binary tree routines. - * - * rblist is a binary tree with the links being in the data item. - * - * Developped in part from ideas obtained from several online University - * courses. - * - * Kern Sibbald, November MMV - * - * Version $Id$ - * - */ /* Bacula® - The Network Backup Solution - Copyright (C) 2005-2007 Free Software Foundation Europe e.V. + Copyright (C) 2005-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -38,6 +25,17 @@ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, Switzerland, email:ftf@fsfeurope.org. */ +/* + * Bacula red-black binary tree routines. + * + * rblist is a binary tree with the links being in the data item. + * + * Developped in part from ideas obtained from several online University + * courses. + * + * Kern Sibbald, November MMV + * + */ #include "bacula.h" @@ -490,7 +488,7 @@ int main() delete jcr_chain; - sm_dump(true); + sm_dump(true); /* unit test */ } #endif -- 2.39.5