From 572d431816271830cc321c2c7b596236e5708ea0 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Wed, 27 Jan 2016 15:13:35 +0000 Subject: sg_logs: LPS misalignment lpage; sg_format: add ffmt option; sg_lib: big sense reporting rework git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@657 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_timestamp.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/sg_timestamp.c') diff --git a/src/sg_timestamp.c b/src/sg_timestamp.c index 2de784b5..72c141f0 100644 --- a/src/sg_timestamp.c +++ b/src/sg_timestamp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Douglas Gilbert. + * Copyright (c) 2015-2016 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. @@ -33,7 +33,7 @@ * to the given SCSI device. Based on spc5r07.pdf . */ -static const char * version_str = "1.01 20151219"; +static const char * version_str = "1.02 20160126"; #define REP_TIMESTAMP_CMDLEN 12 #define SET_TIMESTAMP_CMDLEN 12 @@ -108,12 +108,13 @@ usage() "The timestamp\nis SET if either the --milliseconds=MS or " "--seconds=SEC option is given,\notherwise the existing " "timestamp is reported. The DEVICE stores the\ntimestamp as " - "the number of milliseconds since 1970-01-01 00:00:00 UTC\n" - "which also happens to be the time 'epoch' of Unix " - "machines. The 'date +%%s'\ncommand in Unix returns the " - "number of seconds since the epoch. To\nconvert a reported " - "timestamp (in seconds since the epoch) to a more\nreadable " - "form use 'date --date='@' .\n"); + "the number of milliseconds since power up (or reset) or\n" + "since 1970-01-01 00:00:00 UTC which also happens to be the " + "time 'epoch'\nof Unix machines. The 'date +%%s' command in " + "Unix returns the number of\nseconds since the epoch. To " + "convert a reported timestamp (in seconds since\nthe epoch) " + "to a more readable form use " + "'date --date='@' .\n"); } /* Invokes a SCSI REPORT TIMESTAMP command. Return of 0 -> success, -- cgit v1.2.3