Lines Matching defs:fmt
326 unsigned int val, const char *fmt)
328 const char *p = fmt;
331 while ((p = strchr(fmt, '|'))) {
332 size_t l = PTR_DIFF(p, fmt);
334 ND_PRINT((ndo, "%.*s ", (int)l, fmt));
335 fmt = p + 1;
437 const u_char *buf, const char *fmt, const u_char *maxbuf,
443 while (*fmt && buf<maxbuf) {
444 switch (*fmt) {
449 fmt++;
456 fmt++;
465 p = strchr(++fmt, '}');
466 l = PTR_DIFF(p, fmt);
471 strncpy(bitfmt, fmt, l);
473 fmt = p + 1;
482 int l = atoi(fmt + 1);
485 fmt++;
486 while (isdigit((unsigned char)*fmt))
487 fmt++;
492 fmt++;
501 fmt++;
512 fmt++;
523 fmt++;
534 fmt++;
550 fmt++;
560 fmt++;
571 fmt++;
582 fmt++;
587 fmt++;
588 switch (*fmt) {
613 fmt++;
624 s = unistr(ndo, buf, &len, (*fmt == 'R') ? 0 : unicodestr);
629 fmt++;
644 s = unistr(ndo, buf + 1, &len, (*fmt == 'Y') ? 0 : unicodestr);
649 fmt++;
654 int l = atoi(fmt + 1);
658 fmt++;
659 while (isdigit((unsigned char)*fmt))
660 fmt++;
668 fmt++;
669 while (isdigit((unsigned char)*fmt))
670 fmt++;
681 fmt++;
686 int l = atoi(fmt + 1);
690 fmt++;
691 while (isdigit((unsigned char)*fmt))
692 fmt++;
697 int t = atoi(fmt+1);
723 fmt++;
724 while (isdigit((unsigned char)*fmt))
725 fmt++;
735 switch (atoi(fmt + 1)) {
772 fmt++;
773 while (isdigit((unsigned char)*fmt))
774 fmt++;
778 ND_PRINT((ndo, "%c", *fmt));
779 fmt++;
784 if (buf >= maxbuf && *fmt)
797 const u_char *buf, const char *fmt, const u_char *maxbuf,
804 while (*fmt) {
805 switch (*fmt) {
807 fmt++;
811 buf2 = smb_fdata(ndo, buf, fmt, maxbuf, unicodestr);
822 fmt++;
828 fmt++;
833 fmt++;
838 fmt++;
842 p = strchr(fmt, ']');
843 if ((size_t)(p - fmt + 1) > sizeof(s)) {
847 strncpy(s, fmt, p - fmt);
848 s[p - fmt] = '\0';
849 fmt = p + 1;
856 ND_PRINT((ndo, "%c", *fmt));
857 fmt++;