Skip to content

Commit

Permalink
Update debug printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jun 8, 2024
1 parent 128dcb6 commit 0fe976f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engine/cwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ void cwd_init( void )

assert( !cwd_ );

err_puts( "After assert() in cwd_init\n" );
err_puts( "In cwd_init: after assert(!cwd_)\n" );

do
{
char * const buffer = (char *)BJAM_MALLOC_RAW( buffer_size );

err_puts( "After BJAM_MALLOC_RAW() in cwd_init\n" );
err_printf( "In cwd_init: after BJAM_MALLOC_RAW(%d), which returned %p\n", buffer_size, buffer );

#ifdef OS_VMS
/* cwd in POSIX-format */
Expand All @@ -66,13 +66,13 @@ void cwd_init( void )
cwd_buffer = getcwd( buffer, buffer_size );
#endif

err_puts( "After getcwd() in cwd_init\n" );
err_printf( "In cwd_init: after getcwd(%p, %d), which returned %p\n", buffer, buffer_size, cwd_buffer );

error = errno;

if ( cwd_buffer )
{
err_puts( "In if(cwd_buffer) in cwd_init\n" );
err_printf( "In cwd_init: in if(cwd_buffer): cwd_buffer is '%s'\n", cwd_buffer );

/* We store the path using its canonical/long/key format. */
OBJECT * cwd = object_new( cwd_buffer );
Expand Down

0 comments on commit 0fe976f

Please sign in to comment.