X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=src%2Fvg%2Fvg_store.h;h=ee0e91acf04d3e94579b1f62c7dfafda8d322a9d;hb=9917df2d289c6c35d6bf54319aed3aed421b53f1;hp=00a8540568996fb2933f2d21e6f114a20832bd9c;hpb=94b61bed97af43179b37593f4453a05d03687cbc;p=vg.git diff --git a/src/vg/vg_store.h b/src/vg/vg_store.h index 00a8540..ee0e91a 100644 --- a/src/vg/vg_store.h +++ b/src/vg/vg_store.h @@ -3,6 +3,7 @@ #include "vg_stdint.h" #include "vg_io.h" +#include "vg_log.h" /* * Anderson tree implementation with extensions: @@ -562,10 +563,10 @@ static void aatree_show_r( aatree *tree, aatree_ptr t, int lvl, for( int i=0; iright, lvl+1, p_show ); } @@ -581,10 +582,10 @@ static void aatree_show( aatree *tree, aatree_ptr t, void(*p_show)(void *data)) for( int i=0; ilevel; i++ ) { - vg_log( " " ); + vg_info( " " ); } p_show( data ); - vg_log( " (%d) \n", t ); + vg_info( " (%d) \n", t ); aatree_show( tree, ptnode->right, p_show ); } @@ -603,7 +604,7 @@ static void aatree_show_counts( aatree *tree, aatree_ptr t, int lvl, int *ln, aatree_show_counts( tree, ptnode->left, lvl+1, ln, err, p_show, show ); - if( show ) vg_log( "%03d| ", *ln ); + if( show ) vg_info( "%03d| ", *ln ); *ln = *ln +1; if( show ) @@ -629,7 +630,7 @@ static void aatree_show_counts( aatree *tree, aatree_ptr t, int lvl, int *ln, if( !aatree_verify( tree, t ) ) { if( show ) - vg_log( "error\n" ); + vg_info( "error\n" ); *err = 1; }