aboutsummaryrefslogtreecommitdiffstats
path: root/src/direct_bt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-07-22 01:32:50 +0200
committerSven Gothel <[email protected]>2022-07-22 01:32:50 +0200
commitb3dab09c7d7462223c613554720602c8e5544bb4 (patch)
treee0c27542dd2ece0103b4033fcb4f5ae20a04a86b /src/direct_bt
parent2883f6fb4d483affba02164ec0fa7fce07f5660f (diff)
Adapt to `file_stats::to_string()` .. dropped 'use_space' paramter (jaulib c88abd8359be48b19425dffe154b0eb469401bb9)
Diffstat (limited to 'src/direct_bt')
-rw-r--r--src/direct_bt/SMPKeyBin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/direct_bt/SMPKeyBin.cpp b/src/direct_bt/SMPKeyBin.cpp
index dad559d0..eb561e2c 100644
--- a/src/direct_bt/SMPKeyBin.cpp
+++ b/src/direct_bt/SMPKeyBin.cpp
@@ -214,7 +214,7 @@ std::string SMPKeyBin::toString() const noexcept {
"], ";
{
jau::fraction_timespec t0( ts_creation_sec, 0 );
- res += t0.to_iso8601_string(true);
+ res += t0.to_iso8601_string();
}
res += ", valid "+std::to_string( isValid() )+"]";
return res;
@@ -252,12 +252,12 @@ bool SMPKeyBin::write(const std::string& path, const bool overwrite) const noexc
if( fname_stat.exists() ) {
if( fname_stat.is_file() && overwrite ) {
if( !remove_impl(fname) ) {
- jau::fprintf_td(stderr, "Write SMPKeyBin: Failed deletion of existing file %s, %s\n", fname_stat.to_string(true).c_str(), toString().c_str());
+ jau::fprintf_td(stderr, "Write SMPKeyBin: Failed deletion of existing file %s, %s\n", fname_stat.to_string().c_str(), toString().c_str());
return false;
}
} else {
if( verbose ) {
- jau::fprintf_td(stderr, "Write SMPKeyBin: Not overwriting existing %s, %s\n", fname_stat.to_string(true).c_str(), toString().c_str());
+ jau::fprintf_td(stderr, "Write SMPKeyBin: Not overwriting existing %s, %s\n", fname_stat.to_string().c_str(), toString().c_str());
}
return false;
}
@@ -265,7 +265,7 @@ bool SMPKeyBin::write(const std::string& path, const bool overwrite) const noexc
std::ofstream file(fname, std::ios::out | std::ios::binary);
if ( !file.good() || !file.is_open() ) {
- jau::fprintf_td(stderr, "Write SMPKeyBin: Failed: File not open %s: %s\n", fname_stat.to_string(true).c_str(), toString().c_str());
+ jau::fprintf_td(stderr, "Write SMPKeyBin: Failed: File not open %s: %s\n", fname_stat.to_string().c_str(), toString().c_str());
file.close();
return false;
}