projects
/
framework
/
web
/
wrt-commons.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tizen 2.4 release
[framework/web/wrt-commons.git]
/
modules
/
core
/
include
/
dpl
/
scoped_fclose.h
diff --git
a/modules_mobile/core/include/dpl/scoped_fclose.h
b/modules/core/include/dpl/scoped_fclose.h
similarity index 89%
rename from
modules_mobile/core/include/dpl/scoped_fclose.h
rename to
modules/core/include/dpl/scoped_fclose.h
index
b029803
..
e774ef2
100644
(file)
--- a/
modules_mobile/core/include/dpl/scoped_fclose.h
+++ b/
modules/core/include/dpl/scoped_fclose.h
@@
-26,7
+26,7
@@
#include <cerrno>
#include <cstdio>
#include <string>
#include <cerrno>
#include <cstdio>
#include <string>
-#include <dpl/log/log.h>
+#include <dpl/log/
wrt_
log.h>
#include <dpl/scoped_resource.h>
#include <dpl/errno_string.h>
#include <dpl/scoped_resource.h>
#include <dpl/errno_string.h>
@@
-44,14
+44,14
@@
struct ScopedFClosePolicy
// Try to flush first
if (TEMP_FAILURE_RETRY(fflush(file)) != 0) {
std::string errString = GetErrnoString();
// Try to flush first
if (TEMP_FAILURE_RETRY(fflush(file)) != 0) {
std::string errString = GetErrnoString();
- LogPedantic("Failed to fflush scoped fclose error: "
-
<< errString
);
+ WrtLogD("Failed to fflush scoped fclose error: %s",
+
errString.c_str()
);
}
// fclose cannot be retried, try to close once
if (fclose(file) != 0) {
std::string errString = GetErrnoString();
}
// fclose cannot be retried, try to close once
if (fclose(file) != 0) {
std::string errString = GetErrnoString();
-
LogPedantic("Failed scoped fclose error: " << errString
);
+
WrtLogD("Failed scoped fclose error: %s", errString.c_str()
);
}
}
}
}
}
}