Tuesday, May 3, 2011

how to dump (print) an OSDictionary to the console / log?

I would like to inspect the contents of an OSDictionary from my kext. is there a convenient way to print the contents to system.log or similar? (ala CFShow()) ?

thx->adv,

|K<

From stackoverflow
  • I have found a code-snippet to assist in this (which prints the dict keys):

    static void printDictionaryKeys (OSDictionary * inDictionary, char * inMsg)
    

    the source is here: printDictionaryKeys()

0 comments:

Post a Comment