aboutsummaryrefslogtreecommitdiff
path: root/testing/sgh_dd.cpp
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2020-03-09 18:02:02 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2020-03-09 18:02:02 +0000
commit6d0bc453c737596c5b563dd27d69c2301e9fe280 (patch)
tree8c3c4a529c6d54edc5070e837dab3a2f44435130 /testing/sgh_dd.cpp
parent6dacefb0646d90cb10dc2bd4aaca22302ac13d81 (diff)
downloadsg3_utils-6d0bc453c737596c5b563dd27d69c2301e9fe280.tar.gz
bump config to version 1.46 beta
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@845 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/sgh_dd.cpp')
-rw-r--r--testing/sgh_dd.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/sgh_dd.cpp b/testing/sgh_dd.cpp
index f48be00f..9367043b 100644
--- a/testing/sgh_dd.cpp
+++ b/testing/sgh_dd.cpp
@@ -108,7 +108,7 @@
using namespace std;
-static const char * version_str = "1.75 20200227";
+static const char * version_str = "1.76 20200307";
#ifdef __GNUC__
#ifndef __clang__
@@ -3500,7 +3500,10 @@ bypass:
mmp = (uint8_t *)mmap(NULL, num, PROT_READ | PROT_WRITE,
MAP_SHARED, fd, 0);
if (MAP_FAILED == mmp) {
- perror("error using mmap()");
+ int err = errno;
+
+ pr2serr_lk("sgh_dd: %s: sz=%d, fd=%d, mmap() failed: %s\n",
+ __func__, num, fd, strerror(err));
return 0;
}
*mmpp = mmp;