Storaged cleanup
Compliance with Android Coding standards
Test: compile
Bug: 28826771
Change-Id: I10bc4a793bb1da75e8600b81a5d7ff913e310da1
diff --git a/storaged/storaged_utils.cpp b/storaged/storaged_utils.cpp
index 9c0b625..5e04888 100644
--- a/storaged/storaged_utils.cpp
+++ b/storaged/storaged_utils.cpp
@@ -16,15 +16,15 @@
#define LOG_TAG "storaged"
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <linux/time.h>
-
#include <dirent.h>
-#include <stdio.h>
+#include <fcntl.h>
+#include <linux/time.h>
#include <stdint.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
+#include <time.h>
#include <unistd.h>
#include <sstream>
@@ -32,18 +32,16 @@
#include <unordered_map>
#include <android-base/file.h>
+#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
-#include <android-base/logging.h>
+#include <cutils/klog.h>
#include <log/log.h>
#include <log/log_event_list.h>
-#include <cutils/klog.h>
#include <storaged.h>
#include <storaged_utils.h>
-#include <time.h>
-
#define SECTOR_SIZE ( 512 )
#define SEC_TO_MSEC ( 1000 )
#define MSEC_TO_USEC ( 1000 )
@@ -416,7 +414,7 @@
}
}
}
- { // update critical area
+ { // update critical area
// this is really fast!
std::unique_ptr<lock_t> lock(new lock_t(&mSem));
mRunning = tasks_latest;