universal7885: format code using clang-format-15

This commit is contained in:
roynatech2544 2022-04-12 17:26:15 +09:00
commit cb072badd5
No known key found for this signature in database
GPG key ID: 50ABF73F0D19445D
55 changed files with 3946 additions and 3783 deletions

View file

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <thread>
#define KMSG_PATH "/proc/kmsg"
@ -23,17 +23,17 @@
#include <iostream>
void copy_kmsg() {
std::ifstream readfile(KMSG_PATH);
std::ofstream writefile(WRITE_KMSG);
writefile << readfile.rdbuf();
std::ifstream readfile(KMSG_PATH);
std::ofstream writefile(WRITE_KMSG);
writefile << readfile.rdbuf();
}
void copy_logcat() {
system("/system/bin/logcat -b all -f /data/debug/logcat.txt");
system("/system/bin/logcat -b all -f /data/debug/logcat.txt");
}
int main() {
std::thread kmsg(copy_kmsg);
std::thread logcat(copy_logcat);
kmsg.join();
logcat.join();
return 0;
std::thread kmsg(copy_kmsg);
std::thread logcat(copy_logcat);
kmsg.join();
logcat.join();
return 0;
}