I'm not familiar with this PRI stuff.  Is this syntax proper?  Looks like the first quote there would be ending the quote at the beginning of the printf...