]> git.ozlabs.org Git - yaboot.git/blobdiff - second/partition.c
Double block_buffer
[yaboot.git] / second / partition.c
index 7facbc46b3f68284576b781237b7c7c4a022ae2e..1ade1b671f4e422b28546407ecfc5aace2a2ebe9 100644 (file)
@@ -63,12 +63,12 @@ static const char *valid_mac_partition_types[] = {
 #endif
 
 
-#define MAX_BLOCK_SIZE 2048
-static unsigned char block_buffer[MAX_BLOCK_SIZE];
+#define MAX_BLOCK_SIZE 4096
+static unsigned char block_buffer[MAX_BLOCK_SIZE * 2];
 
 static void
 add_new_partition(struct partition_t** list, int part_number, const char *part_type,
-                 const char *part_name, unsigned long part_start, unsigned long part_size,
+                 const char *part_name, unsigned long long part_start, unsigned long long part_size,
                  unsigned short part_blocksize, int sys_ind)
 {
      struct partition_t*       part;
@@ -452,7 +452,7 @@ get_part_type(char *device, int partition)
          return '\0';
 
      for (p = parts; p && !found; p=p->next) {
-         DEBUG_F("number: %02d, start: 0x%08lx, length: 0x%08lx, type: %s, name: %s\n",
+         DEBUG_F("number: %02d, start: 0x%08Lx, length: 0x%08Lx, type: %s, name: %s\n",
                  p->part_number, p->part_start, p->part_size, p->part_type, p->part_name);
          if ((partition >= 0) && (partition == p->part_number)) {
               type = strdup(p->part_type);