mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 02:45:45 +03:00
110a9efc3c
* proof of concept * fix syntax for rust and add auto fix syntax * fix syntax for C * fix bug with files owner * add information to wiki * try to add ci * format code from master * even more format fixes * change docker to docker-compose * Exclude ./target_*/build directories from format check * Run rustfmt only on project files * add ulimit setup for long clang list * merge * fix rustfmt, exclude target Inc directory * sync with master * abspath Co-authored-by: aanper <mail@s3f.ru> Co-authored-by: Vadim Kaushan <admin@disasm.info>
25 lines
495 B
C
25 lines
495 B
C
#define _GNU_SOURCE
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
|
|
#include "log.h"
|
|
#include "furi.h"
|
|
|
|
#define PRINT_STR_SIZE 64
|
|
|
|
void fuprintf(FuriRecordSubscriber* f, const char* format, ...) {
|
|
char buffer[PRINT_STR_SIZE];
|
|
|
|
va_list args;
|
|
va_start(args, format);
|
|
vsprintf(buffer, format, args);
|
|
va_end(args);
|
|
|
|
furi_write(f, buffer, strlen(buffer));
|
|
}
|
|
|
|
FuriRecordSubscriber* get_default_log() {
|
|
return furi_open("tty", false, false, NULL, NULL, NULL);
|
|
} |