Fifo: Fix some missing c_str()s for formatting logs
This commit is contained in:
parent
1dfa41923b
commit
a78236d05c
|
@ -124,7 +124,7 @@ bool Fifo::writePacket(std::string filename, ZMPacket &packet) {
|
||||||
|
|
||||||
if ( !on_blocking_abort ) {
|
if ( !on_blocking_abort ) {
|
||||||
if ( (outfile = fopen(filename.c_str(), "wb")) == nullptr ) {
|
if ( (outfile = fopen(filename.c_str(), "wb")) == nullptr ) {
|
||||||
Error("Can't open %s for writing: %s", filename, strerror(errno));
|
Error("Can't open %s for writing: %s", filename.c_str(), strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -174,7 +174,7 @@ bool Fifo::write(std::string filename, uint8_t *data, size_t bytes) {
|
||||||
|
|
||||||
if ( !on_blocking_abort ) {
|
if ( !on_blocking_abort ) {
|
||||||
if ( (outfile = fopen(filename.c_str(), "wb")) == nullptr ) {
|
if ( (outfile = fopen(filename.c_str(), "wb")) == nullptr ) {
|
||||||
Error("Can't open %s for writing: %s", filename, strerror(errno));
|
Error("Can't open %s for writing: %s", filename.c_str(), strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue