Searched defs:msg (Results 26 - 50 of 112) sorted by relevance

12345

/fuchsia/zircon/system/host/netprotocol/
H A Dnetprotocol.h22 } msg; typedef in typeref:struct:__anon581
/fuchsia/zircon/system/ulib/fdio/
H A Dwatcher.c69 static zx_status_t fdio_watcher_process(fdio_watcher_t* w, uint8_t* msg, size_t len) { argument
113 uint8_t msg[fuchsia_io_MAX_BU local
[all...]
/fuchsia/zircon/system/ulib/fidl/
H A Dbind.c24 static zx_status_t fidl_reply(fidl_txn_t* txn, const fidl_msg_t* msg) { argument
49 fidl_msg_t msg = { local
[all...]
/fuchsia/zircon/system/ulib/pretty/
H A Dtest.c105 char msg[128]; local
126 char msg[128]; local
[all...]
/fuchsia/zircon/system/ulib/runtime/
H A Dprocessargs.c74 zx_status_t zxr_processargs_strings(void* msg, uint32_t bytes, argument
/fuchsia/zircon/system/ulib/syslog/
H A Dlogger.cpp56 fx_logger_log(fx_logger_t* logger, fx_log_severity_t severity, const char* tag, const char* msg) argument
H A Dfx_logger.cpp54 VLogWriteToSocket(fx_log_severity_t severity, const char* tag, const char* msg, va_list args, bool perform_format) argument
81 ZX_DEBUG_ASSERT(write_len < 128); packet.data[pos++] = static_cast<char>(write_len); memcpy(packet.data + pos, tag, write_len); pos += write_len; } } packet.data[pos++] = 0; ZX_DEBUG_ASSERT(pos < kDataSize); int n = static_cast<int>(kDataSize - pos); int count = 0; size_t msg_pos = pos; if (!perform_format) { size_t write_len = fbl::min(strlen(msg), static_cast<size_t>(n - 1)); memcpy(packet.data + pos, msg, write_len); pos += write_len; packet.data[pos] = 0; count = static_cast<int>(write_len + 1); } else { count = vsnprintf(packet.data + pos, n, msg, args); if (count < 0) { return ZX_ERR_INVALID_ARGS; } } if (count >= n) { constexpr char kEllipsis[] = �; constexpr size_t kEllipsisSize = sizeof(kEllipsis) - 1; memcpy(packet.data + kDataSize - 1 - kEllipsisSize, kEllipsis, kEllipsisSize); count = n - 1; } auto size = sizeof(packet.metadata) + msg_pos + count + 1; ZX_DEBUG_ASSERT(size <= sizeof(packet)); auto status = socket_.write(0, &packet, size, nullptr); if (status == ZX_ERR_BAD_STATE || status == ZX_ERR_PEER_CLOSED) { ActivateFallback(-1); return VLogWriteToFd(logger_fd_.load(fbl::memory_order_relaxed), severity, tag, packet.data + msg_pos, args, false); } if (status != ZX_OK) { dropped_logs_.fetch_add(1); } return status; } zx_status_t fx_logger::VLogWriteToFd(int fd, fx_log_severity_t severity, const char* tag, const char* msg, va_list args, bool perform_format) { zx_time_t time = zx_clock_get_monotonic(); constexpr char kEllipsis[] = �; constexpr size_t kEllipsisSize = sizeof(kEllipsis) - 1; constexpr size_t kMaxMessageSize = 2043; fbl::StringBuffer<kMaxMessageSize + kEllipsisSize + 1 > buf; buf.AppendPrintf(�, time / 1000000000UL, (time / 1000UL) % 1000000UL); buf.AppendPrintf(�, pid_); buf.AppendPrintf(�, GetCurrentThreadKoid()); buf.Append(�); if (!tagstr_.empty()) { buf.Append(tagstr_); } if (tag != NULL) { size_t len = strlen(tag); if (len > 0) { if (!tagstr_.empty()) { buf.Append(�); } buf.Append(tag, fbl::min(len, static_cast<size_t>(FX_LOG_MAX_TAG_LEN - 1))); } } buf.Append(�); switch (severity) { case FX_LOG_INFO: buf.Append(�); break; case FX_LOG_WARNING: buf.Append(�); break; case FX_LOG_ERROR: buf.Append(�); break; case FX_LOG_FATAL: buf.Append(�); break; default: buf.AppendPrintf(�, -severity); } buf.Append(�); if (!perform_format) { buf.Append(msg); } else { buf.AppendVPrintf(msg, args); } if (buf.size() > kMaxMessageSize) { buf.Resize(kMaxMessageSize); buf.Append(kEllipsis); } buf.Append(�); ssize_t status = write(fd, buf.data(), buf.size()); if (status < 0) { return ZX_ERR_IO; } return ZX_OK; } zx_status_t fx_logger::VLogWrite(fx_log_severity_t severity, const char* tag, const char* msg, va_list args, bool perform_format) { if (msg == NULL || severity > FX_LOG_FATAL) { return ZX_ERR_INVALID_ARGS; } if (GetSeverity() > severity) argument
[all...]
H A Dfx_logger.h58 LogWrite(fx_log_severity_t severity, const char* tag, const char* msg) argument
/fuchsia/zircon/system/utest/channel-fatal/
H A Dchannel-fatal-test.c51 char msg[8] = { 0, }; local
143 char msg[8] = { 0 }; local
/fuchsia/zircon/system/utest/fidl-simple/
H A Dserver_tests.c41 fidl_msg_t msg = { local
114 static zx_status_t reply_handler(fidl_txn_t* txn, const fidl_msg_t* msg) { argument
157 fidl_msg_t msg = { local
/fuchsia/zircon/system/utest/syslog/
H A Dsyslog_tests.c193 char msg[2048] = {0}; local
/fuchsia/zircon/system/utest/vdso-base/
H A Dvdso-base.c21 char msg[128]; local
59 char msg[128]; local
[all...]
/fuchsia/zircon/third_party/uapp/dash/src/
H A Derror.c114 exvwarning2(const char *msg, va_list ap) argument
143 exverror(int cond, const char *msg, va_list ap) argument
166 sh_error(const char *msg, ...) argument
180 exerror(int cond, const char *msg, ...) argument
[all...]
/fuchsia/zircon/third_party/uapp/mkfs-msdosfs/
H A Dnewfs_msdos.c167 static unsigned int argtou(const char* arg, unsigned int lo, unsigned int hi, const char* msg) { argument
181 argtooff(const char* arg, const char* msg) argument
[all...]
/fuchsia/zircon/third_party/ulib/musl/src/network/
H A Dns_parse.c31 int ns_initparse(const unsigned char* msg, int msglen, ns_msg* handle) { argument
157 ns_name_uncompress(const unsigned char* msg, const unsigned char* eom, const unsigned char* src, char* dst, size_t dstsiz) argument
[all...]
/fuchsia/zircon/kernel/target/arm64/boot-shim/
H A Ddevicetree.c104 static int oops(devicetree_t *dt, const char *msg) { argument
/fuchsia/zircon/system/ulib/fs/
H A Dwatcher.cpp147 uint8_t msg[sizeof(vfs_watch_msg_t) + name.length()]; local
/fuchsia/zircon/bootloader/src/
H A Dinet6.c329 } msg; local
[all...]
/fuchsia/zircon/kernel/arch/x86/
H A Dfaults.cpp83 __NO_RETURN static void exception_die(x86_iframe_t* frame, const char* msg) { argument
/fuchsia/zircon/kernel/lib/fbl/
H A Darena_tests.cpp81 char msg[32]; local
93 EXPECT_EQ(static_cast<size_t>(i + 1), arena.DiagnosticCount(), msg); local
98 char msg[32]; local
112 EXPECT_EQ(static_cast<size_t>(i), arena.DiagnosticCount(), msg); local
130 char msg[32]; local
316 char msg[32]; local
361 char msg[32]; local
378 char msg[32]; local
430 char msg[32]; local
[all...]
/fuchsia/zircon/kernel/lib/unittest/
H A Dunittest.cpp49 unittest_expect_bytes(const uint8_t* expected, const char* expected_name, const uint8_t* actual, const char* actual_name, size_t len, const char* msg, const char* func, int line, bool expect_eq) argument
/fuchsia/zircon/kernel/object/
H A Dchannel_dispatcher.cpp189 zx_status_t ChannelDispatcher::Write(fbl::unique_ptr<MessagePacket> msg) { argument
203 zx_status_t ChannelDispatcher::Call(fbl::unique_ptr<MessagePacket> msg, argument
301 void ChannelDispatcher::WriteSelf(fbl::unique_ptr<MessagePacket> msg) { argument
157 Read(uint32_t* msg_size, uint32_t* msg_handle_count, fbl::unique_ptr<MessagePacket>* msg, bool may_discard) argument
353 Deliver(fbl::unique_ptr<MessagePacket> msg) argument
[all...]
/fuchsia/zircon/kernel/syscalls/
H A Dchannel.cpp92 static void msg_get_handles(ProcessDispatcher* up, MessagePacket* msg, argument
235 static zx_status_t msg_put_handles(ProcessDispatcher* up, MessagePacket* msg, argument
294 fbl::unique_ptr<MessagePacket> msg; local
348 fbl::unique_ptr<MessagePacket> msg; local
[all...]
/fuchsia/zircon/system/core/devmgr/
H A Ddevhost-core.cpp100 static zx_status_t default_message(void *ctx, fidl_msg_t* msg, fidl_txn_t* txn) { argument
H A Ddevice-internal.h69 zx_status_t Message(fidl_msg_t* msg, fidl_txn_t* txn) { argument

Completed in 145 milliseconds

12345