diff --git a/lib/dsmobjects.c b/lib/dsmobjects.c index a8688e6..75f87f2 100644 --- a/lib/dsmobjects.c +++ b/lib/dsmobjects.c @@ -81,10 +81,10 @@ char *dsmDateToStr(dsmDate date) { memset(s,0x00,sizeof(s)); - sprintf(s,"%02i/%02i/%04i %02i:%02i:%02i", - (dsInt16_t)date.day, - (dsInt16_t)date.month, + sprintf(s,"%04i-%02i-%02i %02i:%02i:%02i", date.year, + (dsInt16_t)date.month, + (dsInt16_t)date.day, (dsInt16_t)date.hour, (dsInt16_t)date.minute, (dsInt16_t)date.second); diff --git a/lib/dsmsession.c b/lib/dsmsession.c index e146141..bc77838 100644 --- a/lib/dsmsession.c +++ b/lib/dsmsession.c @@ -197,9 +197,9 @@ int tsm_sessioninfo(dsUint32_t dsmHandle) { printf(" TCPServerAddress: %s\n",dsmOpt.serverAddress); printf(" NODEName: %s\n",dsmOpt.nodeName); - printf(" COMPRESSIon: %d\n",dsmOpt.compression); - printf(" COMPRESSAlways: %d\n",dsmOpt.compressalways); - printf(" PASSWORDAccess: %d\n",dsmOpt.passwordAccess); + printf(" COMPRESSIon: %s\n",dsmOpt.compression ? "YES" : "NO"); + printf(" COMPRESSAlways: %s\n",dsmOpt.compressalways ? "YES" : "NO"); + printf(" PASSWORDAccess: %s\n",dsmOpt.passwordAccess ? "GENERATE" : "PROMPT"); } memset(&dsmSessInfo,0x00,sizeof(ApiSessInfo)); diff --git a/tsmpipe.h b/tsmpipe.h index 1b14f0a..c57745e 100644 --- a/tsmpipe.h +++ b/tsmpipe.h @@ -1,4 +1,4 @@ -#define _TSMPIPE_VERSION "1.6.1" +#define _TSMPIPE_VERSION "1.6.2" #define ACTION_INFO 1 #define ACTION_CREATE 2