Lines Matching defs:s
57 #define STRVAL(s) ((s) ? (s) : "NULL")
132 static char *tok_err = "Unexpected token '%s'\n";
181 log_debug_msg("WARNING: %s line # %d: ",
735 logdmsg(("get_driver_class: rootdir = %s, driver name = %s\n",
738 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, DRIVER_CLASSES);
741 logdmsg(("get_driver_class: failed to open %s: %s\n",
748 if ((sscanf(buf, "%s %s", driver, class_name) == 2) &&
750 logdmsg(("get_driver_class: driver class = %s\n",
768 logdmsg(("lookup_in_confent_list: %s = \"%s\", unit_addr = \"%s\", "
820 logdmsg(("lookup_in_conf_file: rootdir = \"%s\", conf_file = \"%s\", "
821 "path = \"%s\"\n", rootdir, conf_file, STRVAL(path)));
823 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, conf_file);
878 logdmsg(("par_node_name = %s\n", STRVAL(par_node_name)));
879 logdmsg(("par_node_addr = %s\n", STRVAL(par_node_addr)));
880 logdmsg(("par_binding_name = %s\n", STRVAL(par_binding_name)));
881 logdmsg(("par_driver_name = %s\n", STRVAL(par_driver_name)));
886 (void) snprintf(buf, sizeof (buf), "%s@%s", par_binding_name,
951 logdmsg(("client_name_type: client_name = %s\n", client_name));
996 logdmsg(("compare_controller: rootdir = %s, dev1 = %s, dev2 = %s\n",
1001 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, dev1);
1005 logdmsg(("compare_controller: physdev1 = %s\n",
1025 logdmsg(("compare_controller: path1 = %s, path2 = %s\n",
1057 logdmsg(("is_root_controller: rootdir = %s, path = %s\n", rootdir,
1060 (void) snprintf(buf, MAXPATHLEN, "%s%s", rootdir, VFSTAB);
1063 logdmsg(("is_root_controller: failed to open %s: %s\n",
1070 "vfstab entry for mount point \"/\": %s\n",
1087 logdmsg(("is_root_controller: tempnam: failed: %s\n",
1094 "/usr/sbin/metastat -p %s 2>/dev/null | "
1096 "/usr/bin/sed -e 's/^.* 1 1 //' | "
1097 "/usr/bin/cut -f1 -d ' ' > %s",
1100 logdmsg(("is_root_controller: command = %s\n", buf));
1103 while (fscanf(fp, "%" VAL2STR(MAXNAMELEN) "s", ctd) == 1) {
1104 (void) snprintf(buf, MAXPATHLEN, "/dev/dsk/%s", ctd);
1128 (void) snprintf(fullpath, MAXPATHLEN, "%s%s", rootdir, path);
1131 logdmsg(("file_exists: %s: %s\n", fullpath, (x == 0) ? "yes" : "no"));
1158 logdmsg(("is_mpxio_disabled: rootdir = %s, path = %s\n",
1267 logdmsg(("phci_to_vhci: pchi_name = %s\n", phci_name));
1283 logdmsg(("phci_to_vhci: vhci_ctl failed: %s\n",
1289 logdmsg(("phci_to_vhci: vhci name = %s\n", STRVAL(retp)));
1302 (void) snprintf(name, MAXPATHLEN, "%s/%s@%s",
1352 logdmsg(("vhci_to_phci: vchi_name = %s\n", vhci_name));
1363 logdmsg(("vhci_to_phci: vhci_ctl failed to get npaths: %s\n",
1378 logdmsg(("vhci_to_phci: vhci_ctl failed: %s\n",
1434 "on path %s\n", mpxio_disabled, pathlist[i]));
1487 logdmsg(("is_dev_in_vfstab: rootdir = %s, nodepath = %s\n",
1490 (void) snprintf(buf, sizeof (buf), "%s%s", rootdir, VFSTAB);
1502 (void) snprintf(buf, MAXPATHLEN, "%s%s",
1569 logdmsg(("get_install_devlink: physpath = %s\n", physpath));
1580 logdmsg(("get_install_devlink: di_devlink_init() failed: %s\n",
1594 " failed: %s\n", strerror(errno)));
1599 logdmsg(("get_install_devlink: di_devlink_walk failed: %s\n",
1607 logdmsg(("get_install_devlink: devlink = %s\n", devname));
1633 logdmsg(("get_target_devlink: rootdir = %s, physpath = %s\n",
1640 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/rdsk", rootdir);
1642 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/dsk", rootdir);
1653 (void) snprintf(devname, MAXPATHLEN, "%s/%s",
1663 logdmsg(("get_target_devlink: devlink = %s\n",
1694 logdmsg(("devname2physpath: rootdir = %s, devname = %s\n",
1702 (void) snprintf(devlink, MAXPATHLEN, "%s%s",
1717 logdmsg(("devname2physpath: physpath = %s\n", physpath));
1739 logdmsg(("devfs_target2install: rootdir = %s, devname = %s\n",
1766 "%s:%s", mapped_node_path, minorbuf);
1771 logdmsg(("devfs_target2install: mapped physpath: %s\n",
1800 logdmsg(("devfs_install2target: rootdir = %s, devname = %s\n",
1852 "%s:%s", pathlist[j], minorbuf);
2000 "%s/%s", device_path, dp->d_name);
2068 if (snprintf(expr, MAXNAMELEN, "%s:.*", p) >= MAXNAMELEN)
2085 "%s/%s", devpath, dp->d_name);
2197 log_debug_msg("log_confent_list: filename = %s:\n", filename);
2199 log_debug_msg("\tdriver global mpxio_disable = \"%s\"\n\n",
2204 log_debug_msg("\tname = %s\n", confent->name);
2206 log_debug_msg("\tparent = %s\n", confent->parent);
2208 log_debug_msg("\tclass = %s\n", confent->class);
2210 log_debug_msg("\tunit_address = %s\n",
2214 log_debug_msg("\tmpxio_disable = \"%s\"\n\n",
2225 log_debug_msg("\t%s\n", *p);