DMMP_LOG_PRIORITY_STR(3)

πŸ“¦
version 0.15.1 Β· 3 versions
, in arch rolling, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ dmmp_log_priority_str β€” the Device Mapper Multipath API / libdmmp manual, bestie edition ✨

okay so we're deep in the Device Mapper Multipath API (libdmmp) manual and this one is genuinely a lil baby function but she's important, so let's go πŸ’…


πŸ’– NAME πŸ’–

dmmp_log_priority_str β€” she takes a log priority and turns it into a string. that's it. that's the whole job. and she does it flawlessly.


πŸŽ€ SYNOPSIS πŸŽ€

const char * dmmp_log_priority_str (int priority);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • priority β€” an int. it's the log priority, bestie. the thing you want translated. that's the vibe.

🌸 DESCRIPTION 🌸

she converts a log priority into a string β€” specifically a const char *. like, you hand her the number, she hands you back the word. no cap, that's the entire plot of this function, and honestly? iconic of her.


πŸ‘‘ RETURN πŸ‘‘

you get back a const char *. and these are the valid strings she'll hand you, fr fr:

  • "ERROR" for DMMP_LOG_PRIORITY_ERROR
  • "WARN " for DMMP_LOG_PRIORITY_WARNING
  • "INFO " for DMMP_LOG_PRIORITY_INFO
  • "DEBUG" for DMMP_LOG_PRIORITY_DEBUG
  • "Invalid argument" for an invalid log priority
bestie look closely: "WARN " and "INFO " both have a trailing space in there. that's not a typo, that's canon, do not touch her. 🫢

🌈 SEE ALSO 🌈

nothing extra listed here, so just take this function and go be great with it ✨


so yeah, that's dmmp_log_priority_str from the Device Mapper Multipath API - libdmmp Manual, page dmmp_...ty_str(3), dated June 2025. slay, ate, no crumbs left πŸ“πŸ§šπŸ’œ