diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-12-17 21:51:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-12-17 21:51:45 +0000 |
commit | 9628624867acd610344c32542afccd0021ac3e13 (patch) | |
tree | fcb5fc7e7de2aafd20c2f000a195f7259b0aaae9 /wiretap | |
parent | c8716a45eebc3bbe4fd1e4be81d51234f55f5864 (diff) |
Get rid of trailing periods in some error messages for consistency; the
others don't have trailing periods, and the caller adds a period as
desired.
svn path=/trunk/; revision=54199
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/pcapng.c | 12 | ||||
-rw-r--r-- | wiretap/wtap.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c index cb953fd5f6..30d178f6c3 100644 --- a/wiretap/pcapng.c +++ b/wiretap/pcapng.c @@ -561,7 +561,7 @@ pcapng_read_section_header_block(FILE_T fh, gboolean first_block, /* We currently only suport one SHB */ if (pn->shb_read == TRUE) { *err = WTAP_ERR_UNSUPPORTED; - *err_info = g_strdup_printf("pcapng: multiple section header blocks not supported."); + *err_info = g_strdup_printf("pcapng: multiple section header blocks not supported"); return 0; } @@ -1095,13 +1095,13 @@ pcapng_read_packet_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wta if (packet.cap_len > packet.packet_len) { *err = WTAP_ERR_BAD_FILE; - *err_info = g_strdup_printf("pcapng_read_packet_block: cap_len %u is larger than packet_len %u.", + *err_info = g_strdup_printf("pcapng_read_packet_block: cap_len %u is larger than packet_len %u", packet.cap_len, packet.packet_len); return 0; } if (packet.cap_len > WTAP_MAX_PACKET_SIZE) { *err = WTAP_ERR_BAD_FILE; - *err_info = g_strdup_printf("pcapng_read_packet_block: cap_len %u is larger than WTAP_MAX_PACKET_SIZE %u.", + *err_info = g_strdup_printf("pcapng_read_packet_block: cap_len %u is larger than WTAP_MAX_PACKET_SIZE %u", packet.cap_len, WTAP_MAX_PACKET_SIZE); return 0; } @@ -1112,7 +1112,7 @@ pcapng_read_packet_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wta if (packet.interface_id >= pn->number_of_interfaces) { *err = WTAP_ERR_BAD_FILE; - *err_info = g_strdup_printf("pcapng: interface index %u is not less than interface count %u.", + *err_info = g_strdup_printf("pcapng: interface index %u is not less than interface count %u", packet.interface_id, pn->number_of_interfaces); return 0; } @@ -1389,7 +1389,7 @@ pcapng_read_simple_packet_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t * if (simple_packet.cap_len > WTAP_MAX_PACKET_SIZE) { *err = WTAP_ERR_BAD_FILE; - *err_info = g_strdup_printf("pcapng_read_simple_packet_block: cap_len %u is larger than WTAP_MAX_PACKET_SIZE %u.", + *err_info = g_strdup_printf("pcapng_read_simple_packet_block: cap_len %u is larger than WTAP_MAX_PACKET_SIZE %u", simple_packet.cap_len, WTAP_MAX_PACKET_SIZE); return 0; } @@ -2311,7 +2311,7 @@ pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) /* We don't currently support multi-section files. */ wth->phdr.pkt_encap = WTAP_ENCAP_UNKNOWN; *err = WTAP_ERR_UNSUPPORTED; - *err_info = g_strdup_printf("pcapng: multi-section files not currently supported."); + *err_info = g_strdup_printf("pcapng: multi-section files not currently supported"); return FALSE; case(BLOCK_TYPE_PB): diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 2b849176f8..2d515721a1 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -783,7 +783,7 @@ static const char *wtap_errlist[] = { NULL, NULL, "Less data was read than was expected", - "The file appears to be damaged or corrupt.", + "The file appears to be damaged or corrupt", "Less data was written than was requested", "Uncompression error: data oddly truncated", "Uncompression error: data would overflow buffer", |