No description
Find a file
Elliott Hughes 4679a39610 adb: rationalize fatal/error logging.
Let's use LOG(FATAL)/PLOG(FATAL) for actual fatal stuff.

Add a Windows error(3) and move folks who didn't really mean "abort"
fatal over to it. Also get rid of syntax_error which wasn't adding a
lot of value, and most of the places it was adding "usage: " didn't seem
entirely appropriate anyway.

In particular, we seemed to have confused fastdeploy.cpp into aborting
in most user error cases, and none of the reviewers noticed. Clearly
we'd all lost track of far too many options.

(I've also cleaned up a few random instances of fprintf(3) + exit(2).)

Bug: N/A
Test: manual
Change-Id: I3e8440848a24e30d928de9eded505916bc324786
2018-10-19 14:04:24 -07:00
adb adb: rationalize fatal/error logging. 2018-10-19 14:04:24 -07:00
adf Make libadf, libsync_recovery recovery_available. 2018-08-07 10:53:07 -07:00
base adb: rationalize fatal/error logging. 2018-10-19 14:04:24 -07:00
bootstat bootstat: smpl -> reboot,powerloss 2018-09-26 13:02:16 -07:00
cpio
debuggerd Fix two clang-tidy issues in crasher.cpp. 2018-09-24 13:18:22 -07:00
demangle Build adbd for recovery 2018-05-24 14:11:11 +09:00
diagnose_usb Build adbd for recovery 2018-05-24 14:11:11 +09:00
fastboot Merge "fastboot: use constants.h values" 2018-10-18 14:27:33 +00:00
fs_mgr Merge "liblp: Always align the first usable sector." 2018-10-19 05:29:17 +00:00
gatekeeperd Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
healthd Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
include
init Merge changes Iea270320,Ib9063185 2018-10-19 15:43:43 +00:00
libappfuse Stop using SO_SNDBUFFORCE 2018-03-15 14:22:27 +09:00
libasyncio Build adbd for recovery 2018-05-24 14:11:11 +09:00
libbacktrace Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
libbinderwrapper Make libbinderwrapper available in /vendor partition 2018-04-06 08:41:21 +09:00
libcrypto_utils Build adbd for recovery 2018-05-24 14:11:11 +09:00
libcutils fs_mgr: fix incorrect parameter type 2018-10-09 10:49:44 -07:00
libdiskconfig
libgrallocusage Merge "Build both static and shared lib." 2018-09-25 22:29:31 +00:00
libion libion: cleanup logging 2018-03-07 10:56:06 -08:00
libkeyutils Build adbd for recovery 2018-05-24 14:11:11 +09:00
liblog Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
libmemtrack
libmemunreachable Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
libmetricslogger Revert "Make native metrics logger write to statsd socket" 2018-10-19 01:41:07 +00:00
libnativebridge Add error_msg argument to CloseNativeLibrary 2018-09-12 01:36:06 +02:00
libnativeloader Add error_msg argument to CloseNativeLibrary 2018-09-12 01:36:06 +02:00
libnetutils
libpackagelistparser Mark as recovery_available: true 2018-05-15 09:47:04 +09:00
libpixelflinger Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
libprocessgroup Merge "Add OWNERS for libprocessgroup" 2018-09-14 21:08:32 +00:00
libprocinfo Remove ashmem from system/core 2018-08-24 12:30:09 -07:00
libqtaguid
libsparse Revert "libsparse: Add sparse typed callback" 2018-07-26 05:23:45 +00:00
libstats Revert "Make native metrics logger write to statsd socket" 2018-10-19 01:41:07 +00:00
libsuspend Remove libsuspend from VNDK. 2018-08-14 13:39:55 -07:00
libsync Merge libsync_recovery rules into libsync. 2018-08-07 11:00:50 -07:00
libsystem Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
libsysutils Suppress implicit-fallthrough warning. 2018-10-10 14:39:02 -07:00
libunwindstack Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
libusbhost
libutils "utils/Errors.h": include <stdint.h> for int32_t. 2018-10-16 13:17:15 -07:00
libvndksupport bpfmt. 2018-02-16 17:58:14 -08:00
libziparchive Merge "Change ZipArchiveHandle from void* to ZipArchive*" 2018-10-15 23:23:29 +00:00
llkd llkd: Do not check apexd by default for stack 2018-10-15 09:17:40 -07:00
lmkd lmkd: increase the soft limit for keyboard 2018-10-16 18:58:01 +00:00
logcat Suppress implicit-fallthrough warnings. 2018-09-17 16:50:11 +00:00
logd logd: rework logic for LogTimeEntry 2018-10-12 18:28:59 -07:00
logwrapper Build adbd for recovery 2018-05-24 14:11:11 +09:00
mkbootimg Revert "Revert "mkbootimg: Build mkbootimg with Soong."" 2018-09-27 14:11:51 +00:00
property_service Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
qemu_pipe Build adbd for recovery 2018-05-24 14:11:11 +09:00
reboot
rootdir Start logd and service managers during the 'init' trigger 2018-10-17 14:21:37 -07:00
run-as run-as: Migrate to blueprint 2018-06-27 11:15:23 -07:00
sdcard
shell_and_utilities Make unzip available. 2018-09-04 13:33:30 -07:00
storaged Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
toolbox getevent: O_RDWR -> O_RDONLY | O_CLOEXEC 2018-08-24 12:16:17 -07:00
trusty Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
usbd bpfmt. 2018-02-16 17:58:14 -08:00
watchdogd Move watchdogd out of init 2018-08-02 12:25:58 -07:00
.clang-format
.clang-format-2 Remove PenaltyExcessCharacter from clang-formats. 2018-07-19 13:50:41 -07:00
.clang-format-4 Remove PenaltyExcessCharacter from clang-formats. 2018-07-19 13:50:41 -07:00
.gitignore
Android.bp
Android.mk
CleanSpec.mk Shared libs are supported in recovery mode 2018-06-10 08:32:24 +09:00
MODULE_LICENSE_APACHE2
NOTICE
OWNERS Move per-file OWNERS directives to their directories. 2018-06-06 11:49:40 +09:00
PREUPLOAD.cfg