mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Enable compiler to typecheck logging
Annotate spa logging declarations with printflike Workaround gcc bug (non disable-able warning) by replacing "" with " " Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9316
This commit is contained in:
committed by
Brian Behlendorf
parent
d66620681d
commit
74756182d2
@@ -347,7 +347,7 @@ vdev_remove_initiate_sync(void *arg, dmu_tx_t *tx)
|
||||
vic->vic_mapping_object);
|
||||
|
||||
spa_history_log_internal(spa, "vdev remove started", tx,
|
||||
"%s vdev %llu %s", spa_name(spa), vd->vdev_id,
|
||||
"%s vdev %llu %s", spa_name(spa), (u_longlong_t)vd->vdev_id,
|
||||
(vd->vdev_path != NULL) ? vd->vdev_path : "-");
|
||||
/*
|
||||
* Setting spa_vdev_removal causes subsequent frees to call
|
||||
@@ -1111,7 +1111,7 @@ vdev_remove_complete_sync(void *arg, dmu_tx_t *tx)
|
||||
spa_finish_removal(dmu_tx_pool(tx)->dp_spa, DSS_FINISHED, tx);
|
||||
/* vd->vdev_path is not available here */
|
||||
spa_history_log_internal(spa, "vdev remove completed", tx,
|
||||
"%s vdev %llu", spa_name(spa), vd->vdev_id);
|
||||
"%s vdev %llu", spa_name(spa), (u_longlong_t)vd->vdev_id);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1757,7 +1757,8 @@ spa_vdev_remove_cancel_sync(void *arg, dmu_tx_t *tx)
|
||||
vd->vdev_id, dmu_tx_get_txg(tx));
|
||||
spa_history_log_internal(spa, "vdev remove canceled", tx,
|
||||
"%s vdev %llu %s", spa_name(spa),
|
||||
vd->vdev_id, (vd->vdev_path != NULL) ? vd->vdev_path : "-");
|
||||
(u_longlong_t)vd->vdev_id,
|
||||
(vd->vdev_path != NULL) ? vd->vdev_path : "-");
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user