encode_cmd buffer fix, printf, spidev0.0

The encode_cmd returns a pointer to a buffer.
But this buffer was an automatic variable so
invalid values were being produced.
Fixed by making it static.

Added a cast to printf to quiet warnings
about size_t with %lu.

Made /dev/spidev0.0 the default instead of /dev/null.