From 3c285acb6d8f2bf346f50ee4e3ebe878e07e2c33 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Mon, 18 Sep 2017 19:15:01 +0000 Subject: https://github.com/hreinecke/sg3_utils branch sles15 synced 20170914; change sg_ll_*() function's 'int noisy' to bool git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@715 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_reset_wp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sg_reset_wp.c') diff --git a/src/sg_reset_wp.c b/src/sg_reset_wp.c index fc8c4a40..a8b20fa2 100644 --- a/src/sg_reset_wp.c +++ b/src/sg_reset_wp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 Douglas Gilbert. + * Copyright (c) 2014-2017 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -32,7 +32,7 @@ * device. Based on zbc-r04c.pdf . */ -static const char * version_str = "1.05 20160528"; +static const char * version_str = "1.06 20170917"; #define SG_ZONING_OUT_CMDLEN 16 #define RESET_WRITE_POINTER_SA 0x4 @@ -75,7 +75,7 @@ usage() /* Invokes a SCSI RESET WRITE POINTER command (ZBC). Return of 0 -> success, * various SG_LIB_CAT_* positive values or -1 -> other errors */ static int -sg_ll_reset_write_pointer(int sg_fd, uint64_t zid, int all, int noisy, +sg_ll_reset_write_pointer(int sg_fd, uint64_t zid, int all, bool noisy, int verbose) { int k, ret, res, sense_cat; @@ -206,7 +206,7 @@ main(int argc, char * argv[]) return SG_LIB_FILE_ERROR; } - res = sg_ll_reset_write_pointer(sg_fd, zid, all, 1, verbose); + res = sg_ll_reset_write_pointer(sg_fd, zid, all, true, verbose); ret = res; if (res) { if (SG_LIB_CAT_INVALID_OP == res) -- cgit v1.2.3