From 7abc5fe195cfa203d215781e2a04672cebecca1e Mon Sep 17 00:00:00 2001 From: bigbiff Date: Sat, 17 Jan 2015 16:53:12 -0500 Subject: Add cancel backup capability. This will stop the iteration of the partition objects, kill the current twrpTar thread and remove the backup directory. Implement TWAtomicInt class to give us a wrapper that automatically uses mutexes before the read and write to help ensure that the reads and writes will be atomic based on documentation. Change-Id: I645b22bc980a292e9c7202acb24ffd22ebe68c63 --- twrp-functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.cpp') diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 15f442f76..f5bf1b0f0 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -585,7 +585,7 @@ int TWFunc::removeDir(const string path, bool skipParent) { string new_path; if (d == NULL) { - LOGERR("Error opening '%s'\n", path.c_str()); + LOGERR("Error opening dir: '%s'\n", path.c_str()); return -1; } -- cgit v1.2.3