void free_structures
(struct activity * []);
char *get_devname
- (unsigned int, unsigned int, int);
+ (unsigned int, unsigned int);
char *get_sa_devname
(unsigned int, unsigned int, unsigned long long [], unsigned int, uint64_t);
void get_file_timestamp_struct
* IN:
* @major Major number of the device.
* @minor Minor number of the device.
- * @pretty TRUE if the real name of the device (as it appears in /dev)
- * should be returned.
*
* RETURNS:
* The name of the device, which may be the real name (as it appears in /dev)
* or a string with the following format devM-n.
***************************************************************************
*/
-char *get_devname(unsigned int major, unsigned int minor, int pretty)
+char *get_devname(unsigned int major, unsigned int minor)
{
static char buf[32];
char *name;
snprintf(buf, 32, "dev%u-%u", major, minor);
- if (!pretty)
- return (buf);
-
name = get_devname_from_sysfs(major, minor);
if (name != NULL)
return (name);
fprintf(stderr, _("Invalid type of persistent device name\n"));
return 2;
}
- /*
- * If persistent device name doesn't exist for device, use
- * its pretty name.
- */
+ /* Pretty print report (option -j implies option -p) */
*flags |= S_F_PERSIST_NAME + S_F_DEV_PRETTY;
return 0;
break;
char xsid[32] = "", pn[16] = "";
if (DISPLAY_PERSIST_NAME_S(flags)) {
- persist_dev_name = get_persistent_name_from_pretty(get_devname(major, minor, TRUE));
+ persist_dev_name = get_persistent_name_from_pretty(get_devname(major, minor));
}
if (persist_dev_name) {
}
if (!dev_name) {
- dev_name = get_devname(major, minor,
- USE_PRETTY_OPTION(flags));
+ dev_name = get_devname(major, minor);
}
}