From e9e5da32b2e154698482b7ec6b7ab2098cd849c8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 2 Apr 2009 14:33:55 +0000 Subject: Removed some uses of printf in libbu++, I would like to get rid of all of them some day, but I'm not in much of a rush, I just wanted to do a quick survey. Also added the Formatter::flush special stream value, so now you can do a: sio << "hello" << sio.flush; and it'll flush output immediately. I also tweaked a few things in the cachestore and cache so that they actually throw exceptions and the like instead of just printing out some garbage. --- src/cachestorenids.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cachestorenids.h') diff --git a/src/cachestorenids.h b/src/cachestorenids.h index c6a00ce..0f7c72c 100644 --- a/src/cachestorenids.h +++ b/src/cachestorenids.h @@ -57,7 +57,7 @@ namespace Bu nStore.initialize( iBlockSize, iPreAllocate ); int iStream = nStore.createStream(); if( iStream != 0 ) - printf("That's...horrible...id = %d.\n\n", iStream ); + throw Bu::ExceptionBase("That's...horrible...id = %d.\n\n", iStream ); NidsStream ns = nStore.openStream( 0 ); Bu::Archive ar( ns, Bu::Archive::save ); ar << hId; -- cgit v1.2.3