aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-07-02 19:03:07 -0700
committerGuy Harris <guy@alum.mit.edu>2014-07-03 02:03:35 +0000
commit66c342ed59ed0e61f0b32c68b8197016a7299a6d (patch)
tree8742dd5bf61b7c442bcf7bf12e469cd660e497d5 /dumpcap.c
parent0e4e825309a1dea3dde17a44d29d2be666c71335 (diff)
Regularize the first line of version output.
For Wireshark, say "Wireshark", not "wireshark". For other programs, put "(Wireshark)" after the program name, as per http://www.gnu.org/prep/standards/html_node/_002d_002dversion.html ("If the program is a subsidiary part of a larger package, mention the package name in parentheses, like this"). Change-Id: I68558f64cfa6ee4423e42f3d6b120633ef1b2716 Reviewed-on: https://code.wireshark.org/review/2788 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dumpcap.c b/dumpcap.c
index b4028fd04e..3a2a19f26e 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -482,7 +482,7 @@ print_usage(gboolean print_ver)
if (print_ver) {
output = stdout;
fprintf(output,
- "Dumpcap %s\n"
+ "Dumpcap (Wireshark) %s\n"
"Capture network packets and dump them into a pcapng file.\n"
"See http://www.wireshark.org for more information.\n",
get_ws_vcs_version_info());
@@ -569,7 +569,7 @@ static void
show_version(GString *comp_info_str, GString *runtime_info_str)
{
printf(
- "Dumpcap %s\n"
+ "Dumpcap (Wireshark) %s\n"
"\n"
"%s\n"
"%s\n"
@@ -2874,7 +2874,7 @@ capture_loop_init_output(capture_options *capture_opts, loop_data *ld, char *err
os_info_str = g_string_new("");
get_os_version_info(os_info_str);
- g_snprintf(appname, sizeof(appname), "Dumpcap %s", get_ws_vcs_version_info());
+ g_snprintf(appname, sizeof(appname), "Dumpcap (Wireshark) %s", get_ws_vcs_version_info());
successful = pcapng_write_session_header_block(ld->pdh,
(const char *)capture_opts->capture_comment, /* Comment*/
NULL, /* HW*/
@@ -3367,7 +3367,7 @@ do_file_switch_or_stop(capture_options *capture_opts,
os_info_str = g_string_new("");
get_os_version_info(os_info_str);
- g_snprintf(appname, sizeof(appname), "Dumpcap %s", get_ws_vcs_version_info());
+ g_snprintf(appname, sizeof(appname), "Dumpcap (Wireshark) %s", get_ws_vcs_version_info());
successful = pcapng_write_session_header_block(global_ld.pdh,
NULL, /* Comment */
NULL, /* HW */
@@ -4235,7 +4235,7 @@ main(int argc, char *argv[])
get_runtime_version_info(runtime_info_str, get_dumpcap_runtime_info);
/* Add it to the information to be reported on a crash. */
- ws_add_crash_info("Dumpcap %s\n"
+ ws_add_crash_info("Dumpcap (Wireshark) %s\n"
"\n"
"%s"
"\n"