Lines Matching refs:printf
48 if (getuid() != 0) printf("Maybe run adb root?\n"); in suggest_run_adb_root()
66 printf("Could not make block device %s writable (%s).\n", block_device, strerror(errno)); in set_verity_enabled_state()
73 printf("Could not open block device %s (%s).\n", block_device, strerror(errno)); in set_verity_enabled_state()
81 printf("Couldn't find verity metadata!\n"); in set_verity_enabled_state()
86 printf("Verity already disabled on %s\n", mount_point); in set_verity_enabled_state()
91 printf("Verity already enabled on %s\n", mount_point); in set_verity_enabled_state()
96 printf("Could not set verity %s flag on device %s with error %s\n", in set_verity_enabled_state()
106 printf("%s overlayfs for %s\n", enable ? "disabling" : "using", mount_point); in set_verity_enabled_state()
111 printf("Overlayfs %s for %s failed with error %s\n", enable ? "teardown" : "setup", in set_verity_enabled_state()
115 printf("Verity %s on %s\n", enable ? "enabled" : "disabled", mount_point); in set_verity_enabled_state()
137 printf("%s overlayfs\n", enable ? "disabling" : "using"); in overlayfs_setup()
140 printf("Overlayfs %s failed with error %s\n", enable ? "teardown" : "setup", strerror(errno)); in overlayfs_setup()
152 printf("Device is locked. Please unlock the device first\n"); in set_avb_verity_enabled_state()
157 printf("Error getting verity state. Try adb root first?\n"); in set_avb_verity_enabled_state()
162 printf("verity is already %s\n", verity_enabled ? "enabled" : "disabled"); in set_avb_verity_enabled_state()
167 printf("Error setting verity\n"); in set_avb_verity_enabled_state()
172 printf("Successfully %s verity\n", enable_verity ? "enabled" : "disabled"); in set_avb_verity_enabled_state()
191 printf("usage: %s [1|0]\n", argv[0]); in main()
200 printf("usage: %s [1|0]\n", argv[0]); in main()
219 printf("%s only works for userdebug builds\n", argv[0]); in main()
224 printf("verity not enabled - ENG build\n"); in main()
232 printf("verity cannot be disabled/enabled - USER build\n"); in main()
240 printf("Error getting AVB ops\n"); in main()
253 printf("Failed to read fstab\n"); in main()
270 printf("Now reboot your device for settings to take effect\n"); in main()