mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fedora 28: Fix misc bounds check compiler warnings
Fix a bunch of (mostly) sprintf/snprintf truncation compiler warnings that show up on Fedora 28 (GCC 8.0.1). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #7361 Closes #7368
This commit is contained in:
committed by
Brian Behlendorf
parent
1724eb62de
commit
21a4f5cc86
@@ -1176,14 +1176,15 @@ dsl_scan_check_suspend(dsl_scan_t *scn, const zbookmark_phys_t *zb)
|
||||
(longlong_t)zb->zb_blkid);
|
||||
scn->scn_phys.scn_bookmark = *zb;
|
||||
} else {
|
||||
#ifdef ZFS_DEBUG
|
||||
dsl_scan_phys_t *scnp = &scn->scn_phys;
|
||||
|
||||
dprintf("suspending at at DDT bookmark "
|
||||
"%llx/%llx/%llx/%llx\n",
|
||||
(longlong_t)scnp->scn_ddt_bookmark.ddb_class,
|
||||
(longlong_t)scnp->scn_ddt_bookmark.ddb_type,
|
||||
(longlong_t)scnp->scn_ddt_bookmark.ddb_checksum,
|
||||
(longlong_t)scnp->scn_ddt_bookmark.ddb_cursor);
|
||||
#endif
|
||||
}
|
||||
scn->scn_suspending = B_TRUE;
|
||||
return (B_TRUE);
|
||||
|
||||
Reference in New Issue
Block a user