Lines Matching refs:printf
26 printf("usage:\n"); in print_usage()
27 printf("Note that for all these commands, [<dev>] is the device containing the GPT.\n"); in print_usage()
28 printf("Although using a GPT will split your device into small partitions, [<dev>] \n"); in print_usage()
29 printf("should always refer to the containing device, NOT block devices representing\n"); in print_usage()
30 printf("the partitions themselves.\n\n"); in print_usage()
31 printf("> %s dump [<dev>]\n", bin_name); in print_usage()
32 printf(" View the properties of the selected device\n"); in print_usage()
33 printf("> %s init [<dev>]\n", bin_name); in print_usage()
34 printf(" Initialize the block device with a GPT\n"); in print_usage()
35 printf("> %s repartition <dev> [[<label> <type> <size>], ...]\n", bin_name); in print_usage()
36 printf(" Destructively repartition the device with the given layout\n"); in print_usage()
37 printf(" e.g.\n"); in print_usage()
38 printf(" %s repartition /dev/class/block-core/000", bin_name); in print_usage()
39 printf(" esp efi 100m sys system 5g blob blobfs 50%% data data 50%%\n"); in print_usage()
40 printf("> %s add <start block> <end block> <name> [<dev>]\n", bin_name); in print_usage()
41 printf(" Add a partition to the device (and create a GPT if one does not exist)\n"); in print_usage()
42 printf(" Range of blocks is INCLUSIVE (both start and end). Full device range\n"); in print_usage()
43 printf(" may be queried using '%s dump'\n", bin_name); in print_usage()
44 printf("> %s edit <n> type|id BLOBFS|DATA|SYSTEM|EFI|<guid> [<dev>]\n", bin_name); in print_usage()
45 printf(" Edit the GUID of the nth partition on the device\n"); in print_usage()
46 printf("> %s edit_cros <n> [-T <tries>] [-S <successful>] [-P <priority] <dev>\n", bin_name); in print_usage()
47 printf(" Edit the GUID of the nth partition on the device\n"); in print_usage()
48 printf("> %s adjust <n> <start block> <end block> [<dev>]\n", bin_name); in print_usage()
49 printf(" Move or resize the nth partition on the device\n"); in print_usage()
50 printf("> %s remove <n> [<dev>]\n", bin_name); in print_usage()
51 printf(" Remove the nth partition from the device\n"); in print_usage()
52 printf("> %s visible <n> true|false [<dev>]\n", bin_name); in print_usage()
53 printf(" Set the visibility of the nth partition on the device\n"); in print_usage()
54 printf("\n"); in print_usage()
55 printf("The option --live-dangerously may be passed in front of any command\n"); in print_usage()
56 printf("to skip the write confirmation prompt.\n"); in print_usage()
105 printf("error opening %s\n", dev); in init()
112 printf("error getting block info\n"); in init()
117 printf("blocksize=0x%X blocks=%" PRIu64 "\n", info.block_size, info.block_count); in init()
122 printf("error initializing GPT\n"); in init()
160 printf("Partition %d: %s%s%s\n", in dump()
163 printf(" Start: %s%" PRIu64 "%s, End: %s%" PRIu64 "%s (%" PRIu64 " blocks)\n", in dump()
166 printf(" id: %s%s%s\n", X, guid_to_cstring(guid, (const uint8_t*)p->guid), Y); in dump()
168 printf(" type: %s%s%s\n", X, guid_to_cstring(id, (const uint8_t*)p->type), Y); in dump()
170 …printf(" flags: %s%s%s\n", X, flags_to_cstring(flags_str, sizeof(flags_str), p->type, p->flags)… in dump()
183 printf("No valid GPT found\n"); in dump_partitions()
187 printf("Partition table is valid\n"); in dump_partitions()
191 printf("Couldn't identify device range\n"); in dump_partitions()
195 printf("GPT contains usable blocks from %" PRIu64 " to %" PRIu64" (inclusive)\n", start, end); in dump_partitions()
198 printf("Total: %d partitions\n", count); in dump_partitions()
208 printf("\n"); in commit()
209 printf("WARNING: About to write partition table to: %s\n", dev); in commit()
210 printf("WARNING: Type 'y' to continue, 'n' or ESC to cancel\n"); in commit()
229 printf("Error: GPT device sync failed.\n"); in commit()
233 printf("Error: GPT updated but device could not be rebound. Please reboot.\n"); in commit()
236 printf("GPT changes complete.\n"); in commit()
271 printf("add partition: name=%s start=%" PRIu64 " end=%" PRIu64 "\n", name, start, end); in add_partition()
301 printf("GUID length is wrong: %zd but expected %d\n", strlen(guid), in parse_guid()
342 printf("Error, incorrect number of hex characters.\n"); in parse_guid()
448 printf("remove partition: n=%ld name=%s\n", n, in remove_partition()
535 printf("GUID could not be parsed.\n"); in edit_partition()
588 printf("tries must be in the range [0, 16)\n"); in edit_cros_partition()
600 printf("priority must be in the range [0, 16)\n"); in edit_cros_partition()
612 printf("successful must be 0 or 1\n"); in edit_cros_partition()
618 printf("Unknown option\n"); in edit_cros_partition()
624 printf("Did not specify device arg\n"); in edit_cros_partition()
636 printf("Partition is not a CrOS kernel partition\n"); in edit_cros_partition()
643 printf("Failed to set tries\n"); in edit_cros_partition()
650 printf("Failed to set priority\n"); in edit_cros_partition()
765 printf("error getting block info\n"); in repartition()
787 printf("more than 100%% of free space requested\n"); in repartition()
819 printf("GUID could not be parsed: %s\n", type_string); in repartition()
834 printf("partition %s does not fit\n", name); in repartition()
839 printf("%s: %lu bytes, %lu blocks, %lu-%lu\n", name, byte_size, nblocks, start, end); in repartition()
885 printf("failed to edit partition.\n"); in main()
890 printf("failed to edit partition.\n"); in main()
896 printf("failed to adjust partition.\n"); in main()
910 printf("Error changing visibility.\n"); in main()