FreeBSD/sys/ddb/db_capture.c
/*
 * Zero out any bytes left in the last block of the DDB capture buffer.  This
 * is run shortly before writing the blocks to disk, rather than when output
 * capture is stopped, in order to avoid injecting nul's into the middle of
 * output.
 */
Zero out any bytes left in the last block of the DDB capture buffer.  This
is run shortly before writing the blocks to disk, rather than when output
capture is stopped, in order to avoid injecting nul's into the middle of
output.
Zero out any bytes left in the last block of the DDB capture buffer . This is run shortly before writing the blocks to disk rather than when output capture is stopped in order to avoid injecting nul ' s into the middle of output .
static void
db_capture_zeropad(void)
{
	u_int len;
	len = min(TEXTDUMP_BLOCKSIZE, (db_capture_bufsize -
	    db_capture_bufoff) % TEXTDUMP_BLOCKSIZE);
	bzero(db_capture_buf + db_capture_bufoff, len);
	db_capture_bufpadding = len;
}
static void db_capture_zeropad ( void ) { u_int len ; len = min ( TEXTDUMP_BLOCKSIZE , ( db_capture_bufsize - db_capture_bufoff ) % TEXTDUMP_BLOCKSIZE ) ; bzero ( db_capture_buf + db_capture_bufoff , len ) ; db_capture_bufpadding = len ; }
Zero out any bytes left in the last block of the DDB capture buffer.
Zero out any bytes left in the last block of the DDB capture buffer .