Use %jd and a cast to intmax_t instead of a cast to long. Minor style nit while I'm here.
Use %jd and a cast to intmax_t instead of a cast to long.
Minor style nit while I'm here.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase