diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-11-21 00:44:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-11-21 00:44:21 +0000 |
commit | 7a9aef34a92fa33301496a30cff9d3b3ce15eb74 (patch) | |
tree | 32618cbfa32aba34b0ca0f56baedea6ce4b0f360 /capture_win_ifnames.c | |
parent | 303ce49ecd7ed561741f7e8979f6dfeaf3729d5e (diff) | |
download | wireshark-7a9aef34a92fa33301496a30cff9d3b3ce15eb74.tar.gz wireshark-7a9aef34a92fa33301496a30cff9d3b3ce15eb74.tar.bz2 wireshark-7a9aef34a92fa33301496a30cff9d3b3ce15eb74.zip |
When dumpcap is being run by another program, its standard error gets
consumed by that program, and that program only ends up reporting one of
those errors. Therefore, only log one of them; we're seeing errors in
the buildbot, and we want the more detailed error, so don't log a
message after GetInterfaceFriendlyNameFromDeviceGuid() returns an error,
just rely on the error logged by
GetInterfaceFriendlyNameFromDeviceGuid().
Ultimately, we don't want to print anything to the standard output or
error at all, as that stuff ends up being consumed by the program in
question; we should either ignore the error (if it's an "expected"
error) or report it through the API so the the caller can, in turn,
report it appropriately.
svn path=/trunk/; revision=46099
Diffstat (limited to 'capture_win_ifnames.c')
-rw-r--r-- | capture_win_ifnames.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/capture_win_ifnames.c b/capture_win_ifnames.c index 28d2e2f285..9686faeeb9 100644 --- a/capture_win_ifnames.c +++ b/capture_win_ifnames.c @@ -297,9 +297,7 @@ void get_windows_interface_friendlyname(/* IN */ char *interface_devicename, /* { int r=GetInterfaceFriendlyNameFromDeviceGuid(&guid, interface_friendlyname); if(r!=NO_ERROR){ - g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_ERROR, - "Failed to retrieve interface friendly name associated with interface '%s', LastErrorCode=0x%08x.", - interface_devicename, GetLastError()); + /* A message has been logged by GetInterfaceFriendlyNameFromDeviceGuid() */ *interface_friendlyname=NULL; /* failed to get friendly name, ensure the ultimate result is NULL */ return; } |