MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_dbgmsg

Function vdev_dbgmsg

freebsd/contrib/openzfs/module/zfs/vdev.c:119–138  ·  view source on GitHub ↗

PRINTFLIKE2*/

Source from the content-addressed store, hash-verified

117
118/*PRINTFLIKE2*/
119void
120vdev_dbgmsg(vdev_t *vd, const char *fmt, ...)
121{
122 va_list adx;
123 char buf[256];
124
125 va_start(adx, fmt);
126 (void) vsnprintf(buf, sizeof (buf), fmt, adx);
127 va_end(adx);
128
129 if (vd->vdev_path != NULL) {
130 zfs_dbgmsg("%s vdev '%s': %s", vd->vdev_ops->vdev_op_type,
131 vd->vdev_path, buf);
132 } else {
133 zfs_dbgmsg("%s-%llu vdev (guid %llu): %s",
134 vd->vdev_ops->vdev_op_type,
135 (u_longlong_t)vd->vdev_id,
136 (u_longlong_t)vd->vdev_guid, buf);
137 }
138}
139
140void
141vdev_dbgmsg_print_tree(vdev_t *vd, int indent)

Callers 11

vdev_geom_openFunction · 0.85
vdev_disk_openFunction · 0.85
__vdev_disk_physioFunction · 0.85
vdev_metaslab_initFunction · 0.85
vdev_probe_doneFunction · 0.85
vdev_validateFunction · 0.85
vdev_copy_path_strictFunction · 0.85
vdev_dtl_syncFunction · 0.85
vdev_loadFunction · 0.85
vdev_label_read_configFunction · 0.85
vdev_uberblock_loadFunction · 0.85

Calls 2

vsnprintfFunction · 0.85
zfs_dbgmsgClass · 0.50

Tested by

no test coverage detected