> +                     goto wipe_label;
> +
> +             (void) fprintf(stderr,
> +                 gettext("Unable to determine pool state for %s\n"
> +                 "Use -f to force the clearing any label data\n"), vdev);
> +             goto errout;
> +     }
> +
> +     if (inuse) {
> +             switch (state) {
> +             default:
> +             case POOL_STATE_ACTIVE:
> +             case POOL_STATE_SPARE:
> +             case POOL_STATE_L2CACHE:
> +                     (void) fprintf(stderr,
> +gettext("labelclear operation failed.\n"

This is from the original version.  The next best option I can think of would 
be to create preprocessor constants that contain the format strings used here, 
and use them in place.  Would that be OK; any better suggestions?

---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/32/files#r43568644
_______________________________________________
developer mailing list
[email protected]
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to