Lines Matching refs:bf

13 static size_t af_inet__scnprintf(struct sockaddr *sa, char *bf, size_t size)  in af_inet__scnprintf()  argument
17 return scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin->sin_port), in af_inet__scnprintf()
21 static size_t af_inet6__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet6__scnprintf() argument
26 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), in af_inet6__scnprintf()
29 printed += scnprintf(bf + printed, size - printed, ", flowinfo: %lu", flowinfo); in af_inet6__scnprintf()
31 printed += scnprintf(bf + printed, size - printed, ", scope_id: %lu", sin6->sin6_scope_id); in af_inet6__scnprintf()
36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf() argument
39 return scnprintf(bf, size, ", path: %s", sun->sun_path); in af_local__scnprintf()
42 static size_t (*af_scnprintfs[])(struct sockaddr *sa, char *bf, size_t size) = {
48 static size_t syscall_arg__scnprintf_augmented_sockaddr(struct syscall_arg *arg, char *bf, size_t s… in syscall_arg__scnprintf_augmented_sockaddr() argument
55 printed = scnprintf(bf, size, "{ .family: %s", family); in syscall_arg__scnprintf_augmented_sockaddr()
58 printed += af_scnprintfs[sa->sa_family](sa, bf + printed, size - printed); in syscall_arg__scnprintf_augmented_sockaddr()
60 return printed + scnprintf(bf + printed, size - printed, " }"); in syscall_arg__scnprintf_augmented_sockaddr()
63 size_t syscall_arg__scnprintf_sockaddr(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_sockaddr() argument
66 return syscall_arg__scnprintf_augmented_sockaddr(arg, bf, size); in syscall_arg__scnprintf_sockaddr()
68 return scnprintf(bf, size, "%#lx", arg->val); in syscall_arg__scnprintf_sockaddr()