diff options
author | Tony Hutter <[email protected]> | 2018-04-04 10:16:47 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-04 10:16:47 -0700 |
commit | 21a4f5cc867b4f166704df84985edc048caa2578 (patch) | |
tree | 18eb614a113f6a16c9ab5cd3c8247f2230b33cea /module | |
parent | 1724eb62debfaa48f5861660615d49a994945d94 (diff) |
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 <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #7361
Closes #7368
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/dsl_scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/dsl_scan.c b/module/zfs/dsl_scan.c index dba3bf245..90534b4fa 100644 --- a/module/zfs/dsl_scan.c +++ b/module/zfs/dsl_scan.c @@ -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); |