mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: libFileIO: Log write data too
This commit is contained in:
parent
972e443357
commit
e2254ff189
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ int readline(const char *path) {
|
||||||
void writeline(const char *path, const std::string& data) {
|
void writeline(const char *path, const std::string& data) {
|
||||||
std::ofstream file;
|
std::ofstream file;
|
||||||
file.open(path);
|
file.open(path);
|
||||||
ALOGD("%s: Opening %s", __func__, path);
|
ALOGD("%s: Opening %s, will write '%s'", __func__, path, data.c_str());
|
||||||
if (file.is_open()) {
|
if (file.is_open()) {
|
||||||
file << data;
|
file << data;
|
||||||
file.close();
|
file.close();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue