Cleanup debug output and fix indentation
This commit is contained in:
parent
c15a37db51
commit
a5822f6792
|
@ -676,9 +676,11 @@ pcapng_read_section_header_block(FILE_T fh, pcapng_block_header_t *bh,
|
|||
case(OPT_EOFOPT):
|
||||
if (to_read != 0) {
|
||||
pcapng_debug("pcapng_read_section_header_block: %u bytes after opt_endofopt", to_read);
|
||||
}
|
||||
/* padding should be ok here, just get out of this */
|
||||
to_read = 0;
|
||||
} else {
|
||||
pcapng_debug("pcapng_read_section_header_block: opt_endofopt");
|
||||
}
|
||||
break;
|
||||
case(OPT_COMMENT):
|
||||
if (oh.option_length > 0 && oh.option_length < opt_cont_buf_len) {
|
||||
|
@ -2934,7 +2936,7 @@ pcapng_open(wtap *wth, int *err, gchar **err_info)
|
|||
pcapng_debug("No more IDBs available...");
|
||||
break;
|
||||
}
|
||||
pcapng_debug("pcapng_open: Check for more IDB:s, wtap_read_bytes_or_eof() failed, err = %d.", *err);
|
||||
pcapng_debug("pcapng_open: Check for more IDBs, wtap_read_bytes_or_eof() failed, err = %d.", *err);
|
||||
return WTAP_OPEN_ERROR;
|
||||
}
|
||||
|
||||
|
@ -2951,7 +2953,7 @@ pcapng_open(wtap *wth, int *err, gchar **err_info)
|
|||
bh.block_type = GUINT32_SWAP_LE_BE(bh.block_type);
|
||||
}
|
||||
|
||||
pcapng_debug("pcapng_open: Check for more IDB:s block_type 0x%x", bh.block_type);
|
||||
pcapng_debug("pcapng_open: Check for more IDBs, block_type 0x%x", bh.block_type);
|
||||
|
||||
if (bh.block_type != BLOCK_TYPE_IDB) {
|
||||
break; /* No more IDB:s */
|
||||
|
|
Loading…
Reference in New Issue