]> Git Repo - qemu.git/commitdiff
pc-bios/s390-ccw Improve ECKD informational message
authorEugene (jno) Dvurechenski <[email protected]>
Fri, 29 Aug 2014 09:01:38 +0000 (11:01 +0200)
committerChristian Borntraeger <[email protected]>
Mon, 1 Sep 2014 07:23:02 +0000 (09:23 +0200)
Add block size display to ECKD scheme report.

Signed-off-by: Eugene (jno) Dvurechenski <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Jens Freimann <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
pc-bios/s390-ccw/bootmap.c

index f1756796dffe95e20255285e9561540459aec9e6..e4352b16cdeb43498ee9838619032524c495f1ae 100644 (file)
@@ -298,6 +298,25 @@ static void ipl_eckd(ECKD_IPL_mode_t mode)
     }
 }
 
+static void print_eckd_msg(void)
+{
+    char msg[] = "Using ECKD scheme (block size *****), ";
+    char *p = &msg[34], *q = &msg[30];
+    int n = virtio_get_block_size();
+
+    /* Fill in the block size and show up the message */
+    if (n > 0 && n <= 99999) {
+        while (n) {
+            *p-- = '0' + (n % 10);
+            n /= 10;
+        }
+        while (p >= q) {
+            *p-- = ' ';
+        }
+    }
+    sclp_print(msg);
+}
+
 /***********************************************************************
  * IPL a SCSI disk
  */
@@ -447,12 +466,11 @@ void zipl_load(void)
     }
 
     /* We have failed to follow the SCSI scheme, so */
-    sclp_print("Using ECKD scheme.\n");
     if (virtio_guessed_disk_nature()) {
         sclp_print("Using guessed DASD geometry.\n");
         virtio_assume_eckd();
     }
-
+    print_eckd_msg();
     if (magic_match(mbr->magic, IPL1_MAGIC)) {
         ipl_eckd(ECKD_CDL); /* no return */
     }
This page took 0.026729 seconds and 4 git commands to generate.