Ignore:
Timestamp:
Jun 16, 2007, 8:00:32 PM (15 years ago)
Author:
charles
Message:

debugging messages for BMW's crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/libtransmission/makemeta.c

    r2097 r2098  
    5252          struct FileList   * list )
    5353{
     54    int i;
    5455    char buf[MAX_PATH_LENGTH];
    5556    struct stat sb;
     
    5758
    5859    snprintf( buf, sizeof(buf), "%s"TR_PATH_DELIMITER_STR"%s", dir, base );
    59     stat( buf, &sb );
     60fprintf(stderr, "looking at [%s]\n", buf);
     61    i = stat( buf, &sb );
     62fprintf(stderr, "stat returned %d (%s)\n", i, (i?strerror(errno):"no error"));
    6063
    6164    if ( S_ISDIR( sb.st_mode ) )
     
    6366        DIR * odir = opendir( buf );
    6467        struct dirent *d;
     68fprintf(stderr, "it's a directory\n");
    6569        for (d = readdir( odir ); d!=NULL; d=readdir( odir ) )
    6670            if( strcmp( d->d_name,"." ) && strcmp( d->d_name,".." ) )
     
    7276        struct FileList * node = malloc( sizeof( struct FileList ) );
    7377        snprintf( node->filename, sizeof( node->filename ), "%s", buf );
     78fprintf(stderr, "it's a file... keeping [%s]\n", node->filename);
    7479        node->next = list;
    7580        list = node;
Note: See TracChangeset for help on using the changeset viewer.