QB_LOG_CALLSITE_GET(3)

πŸ’– QB_LOG_CALLSITE_GET πŸ’–

okay bestie, so this is qb_log_callsite_get(3) from the libqb Programmer's Manual β€” she's a lil function in the libqb family and she is, lowkey, the girl who makes sure every log line knows where it came from. let's get into it πŸ¦‹


✨ NAME ✨

qb_log_callsite_get β€” get or create a callsite at the given position. periodt.


🌸 SYNOPSIS 🌸

#include <qb/qblog.h>

struct qb_log_callsite * qb_log_callsite_get(
    const char   *function,  /* originating function name */
    const char   *filename,  /* originating filename */
    const char   *format,    /* format string */
    uint8_t       priority,  /* this takes syslog priorities. */
    uint32_t      lineno,    /* file line number */
    uint32_t      tags       /* the tag */
);

she returns a struct qb_log_callsite * and she takes six lil arguments, no cap πŸ’…


πŸŽ€ PARAMS πŸŽ€

  • function β€” the originating function name. like, which function are we even in rn?? πŸ‘€
  • filename β€” the originating filename. the file where the drama is happening πŸ“
  • format β€” the format string. the actual words of the log line, bestie ✍️
  • priority β€” this takes syslog priorities. so it's a syslog-priority kinda situation, not just any random number πŸ”₯
  • lineno β€” the file line number. yes she wants the exact line, she's precise like that πŸ“
  • tags β€” the tag. the lil tag πŸ’œ

πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole vibe is: you call her, she gives you a callsite at the position you asked for β€” getting it or creating it, per the name. and then the result can be passed into qb_log_real_(). that's the tea πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, in order, exactly as they appear:

thirty-one of them. she has a LOT of friends and honestly? iconic. go read them all, iykyk πŸ“šβœ¨


Copyright (c) 2017 Red Hat, Inc.


and that's the whole page, bestie!! 🫢 this one's from libqb, dated 2025-09-16, and it's QB_LOG_CALLSITE_GET(3) in case you forgot where you were. mwah, go log something responsibly πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from