File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -3106,8 +3106,8 @@ compress_savefile(const char *filename)
3106
3106
child = fork_subprocess ();
3107
3107
if (child == -1 ) {
3108
3108
fprintf (stderr ,
3109
- "compress_savefile : fork failed: %s\n" ,
3110
- pcap_strerror (errno ));
3109
+ "%s : fork failed: %s\n" ,
3110
+ __func__ , pcap_strerror (errno ));
3111
3111
return ;
3112
3112
}
3113
3113
if (child != 0 ) {
@@ -3126,10 +3126,8 @@ compress_savefile(const char *filename)
3126
3126
#endif
3127
3127
if (execlp (zflag , zflag , filename , (char * )NULL ) == -1 )
3128
3128
fprintf (stderr ,
3129
- "compress_savefile: execlp(%s, %s) failed: %s\n" ,
3130
- zflag ,
3131
- filename ,
3132
- pcap_strerror (errno ));
3129
+ "%s: execlp(%s, %s) failed: %s\n" ,
3130
+ __func__ , zflag , filename , pcap_strerror (errno ));
3133
3131
#ifdef HAVE_FORK
3134
3132
exit (S_ERR_HOST_PROGRAM );
3135
3133
#else
@@ -3141,7 +3139,8 @@ static void
3141
3139
compress_savefile (const char * filename )
3142
3140
{
3143
3141
fprintf (stderr ,
3144
- "compress_savefile failed. Functionality not implemented under your system\n" );
3142
+ "%s failed. Functionality not implemented under your system\n" ,
3143
+ __func__ );
3145
3144
}
3146
3145
#endif /* HAVE_FORK && HAVE_VFORK */
3147
3146
You can’t perform that action at this time.
0 commit comments