mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: format code using clang-format-15
This commit is contained in:
parent
bfcbd0d355
commit
cb072badd5
55 changed files with 3946 additions and 3783 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue