free_mbr(st);
if (posix_memalign((void**)&super, 512, 512) != 0) {
- fprintf(stderr, Name ": %s could not allocate superblock\n",
+ pr_err("%s could not allocate superblock\n",
__func__);
return 1;
}
lseek(fd, 0, 0);
if (read(fd, super, sizeof(*super)) != sizeof(*super)) {
if (devname)
- fprintf(stderr, Name ": Cannot read partition table on %s\n",
+ pr_err("Cannot read partition table on %s\n",
devname);
free(super);
return 1;
if (super->magic != MBR_SIGNATURE_MAGIC) {
if (devname)
- fprintf(stderr, Name ": No partition table found on %s\n",
+ pr_err("No partition table found on %s\n",
devname);
free(super);
return 1;
struct MBR *old, *super;
if (posix_memalign((void**)&old, 512, 512) != 0) {
- fprintf(stderr, Name ": %s could not allocate superblock\n",
+ pr_err("%s could not allocate superblock\n",
__func__);
return 1;
}
char *subdev, unsigned long long *freesize,
int verbose)
{
- fprintf(stderr, Name ": mbr metadata cannot be used this way\n");
+ pr_err("mbr metadata cannot be used this way\n");
return 0;
}
#endif