]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-gpt.c
Consistently print program Name and __func__ in debug messages.
[thirdparty/mdadm.git] / super-gpt.c
index 8f7d4d93e0585eb2fec48d7d5d879c2f06161875..1a2adce075be923fbe8010e6d5f5f52112e1eded 100644 (file)
@@ -77,8 +77,7 @@ static int load_gpt(struct supertype *st, int fd, char *devname)
        free_gpt(st);
 
        if (posix_memalign((void**)&super, 4096, 32*512) != 0) {
-               pr_err("%s could not allocate superblock\n",
-                       __func__);
+               pr_err("could not allocate superblock\n");
                return 1;
        }
 
@@ -91,7 +90,7 @@ static int load_gpt(struct supertype *st, int fd, char *devname)
                free(super);
                return 1;
        }
+
        if (super->magic != MBR_SIGNATURE_MAGIC ||
            super->parts[0].part_type != MBR_GPT_PARTITION_TYPE) {
        not_found: