[BACK]Return to show.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sbin / gpt

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sbin/gpt/show.c between version 1.39 and 1.40

version 1.39, 2016/10/05 03:06:24 version 1.40, 2017/09/06 18:17:18
Line 129  print_part_type(int map_type, int flags,
Line 129  print_part_type(int map_type, int flags,
                 printf("GPT part ");                  printf("GPT part ");
                 ent = map_data;                  ent = map_data;
                 if (flags & SHOW_LABEL) {                  if (flags & SHOW_LABEL) {
                         utf16_to_utf8(ent->ent_name, utfbuf,                          utf16_to_utf8(ent->ent_name, sizeof(ent->ent_name),
                             sizeof(utfbuf));                              utfbuf, sizeof(utfbuf));
                         b = (char *)utfbuf;                          b = (char *)utfbuf;
                 } else if (flags & SHOW_GUID) {                  } else if (flags & SHOW_GUID) {
                         gpt_uuid_snprintf( buf, sizeof(buf), "%d",                          gpt_uuid_snprintf( buf, sizeof(buf), "%d",
Line 215  show_one(gpt_t gpt, unsigned int entry)
Line 215  show_one(gpt_t gpt, unsigned int entry)
         gpt_uuid_snprintf(s2, sizeof(s1), "%d", ent->ent_guid);          gpt_uuid_snprintf(s2, sizeof(s1), "%d", ent->ent_guid);
         printf("GUID: %s\n", s2);          printf("GUID: %s\n", s2);
   
         utf16_to_utf8(ent->ent_name, utfbuf, sizeof(utfbuf));          utf16_to_utf8(ent->ent_name, sizeof(ent->ent_name), utfbuf,
               sizeof(utfbuf));
         printf("Label: %s\n", (char *)utfbuf);          printf("Label: %s\n", (char *)utfbuf);
   
         printf("Attributes: ");          printf("Attributes: ");
Line 284  show_all(gpt_t gpt)
Line 285  show_all(gpt_t gpt)
 #endif  #endif
                         putchar('\n');                          putchar('\n');
   
                         utf16_to_utf8(ent->ent_name, utfbuf, sizeof(utfbuf));                          utf16_to_utf8(ent->ent_name, sizeof(ent->ent_name),
                               utfbuf, sizeof(utfbuf));
                         printf(PFX "Label: %s\n", (char *)utfbuf);                          printf(PFX "Label: %s\n", (char *)utfbuf);
   
                         printf(PFX "Attributes: ");                          printf(PFX "Attributes: ");

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

CVSweb <webmaster@jp.NetBSD.org>