Fix printing of non-numeric sysctl variables
In OpenZFS there are several new sysctl variables with non-numeric values
that caused warning messages when trying to print them with a "%d" format.
Fix this by detecting non-numeric values and printing them with "%s".
Reported by: David Schlachter