Don't LOG(ERROR) for usage, and fix VS2013 build after 8b3eec8

R=mark@chromium.org
BUG=crashpad:57

Change-Id: I6514a82ae5de38a695422ef86c044ec3b2ce171b
Reviewed-on: https://chromium-review.googlesource.com/412269
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Scott Graham 2016-11-17 14:18:06 -08:00
parent 8b3eec83e9
commit 68095b6a4e
2 changed files with 3 additions and 4 deletions

View File

@ -546,7 +546,7 @@ void RegisterHandlers() {
// expect it to cause a crash dump. This will only work when the abort()
// that's called in client code is the same (or has the same behavior) as the
// one in use here.
_crt_signal_t rv = signal(SIGABRT, HandleAbortSignal);
void (*rv)(int) = signal(SIGABRT, HandleAbortSignal);
DCHECK_NE(rv, SIG_ERR);
}

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "client/crashpad_client.h"
namespace crashpad {
@ -52,8 +52,7 @@ int CrashySignalMain(int argc, wchar_t* argv[]) {
return EXIT_FAILURE;
}
} else {
LOG(ERROR) << "Usage: " << base::UTF16ToUTF8(argv[0])
<< " <server_pipe_name> main|background";
fprintf(stderr, "Usage: %ls <server_pipe_name> main|background\n", argv[0]);
return EXIT_FAILURE;
}