Subversion Repositories f9daq

Rev

Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 14
Line 165... Line 165...
165
    dev = (VMEMM_DEVICE *)malloc(sizeof(*dev));
165
    dev = (VMEMM_DEVICE *)malloc(sizeof(*dev));
166
    if (!dev)
166
    if (!dev)
167
        return errno;
167
        return errno;
168
 
168
 
169
    dev->nFileNo = open(cszDeviceName, O_RDWR);
169
    dev->nFileNo = open(cszDeviceName, O_RDWR);
170
    printf("VMEopen: dev->nFileNo %d size=%d %s\n" , dev->nFileNo,sizeof(*dev),  cszDeviceName );
170
    //printf("VMEopen: dev->nFileNo %d size=%d %s\n" , dev->nFileNo,sizeof(*dev),  cszDeviceName );
171
    if (dev->nFileNo == -1)
171
    if (dev->nFileNo == -1)
172
    {
172
    {
173
        error = errno;
173
        error = errno;
174
        printf("VMEopen:err=%d %s\n" , error,  strerror(error) );
174
        printf("VMEopen:err=%d %s\n" , error,  strerror(error) );
175
        free(dev);
175
        free(dev);