Revision 4d56574c

b/snf-image-helper/disklabel.py
74 74
            return struct.calcsize(MBR.Partition.fmt)
75 75

  
76 76
        def __str__(self):
77
            start = self.unpack_chs(self.start)
78
            end = self.unpack_chs(self.end)
79
            return "%d %s %d %s %d %d" % (self.status, start, self.type, end,
80
                                          self.first_sector, self.sector_count)
77
            return "%02Xh %s %02Xh %s %d %d" % (self.status,
78
                                                self.unpack_chs(self.start),
79
                                                self.type,
80
                                                self.unpack_chs(self.end),
81
                                                self.first_sector,
82
                                                self.sector_count)
81 83

  
82 84
        @staticmethod
83 85
        def unpack_chs(chs):

Also available in: Unified diff