Changeset 9217

Show
Ignore:
Timestamp:
03/02/12 16:24:19 (15 months ago)
Author:
ligon
Message:

Modified the display of handles from 16 to 20 characters when -i option is used along with any other option.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/apps/admin/pvfs2-ls.c

    r9123 r9217  
    239239    PVFS_size size = 0; 
    240240    char scratch_owner[16] = {0}, scratch_group[16] = {0}, scratch_time[MAX_TIME_LENGTH] = {0}, scratch_big_time[MAX_TIME_LENGTH] = {0}; 
    241     char scratch_size[16] = {0}, scratch_inode[16] = {0}; 
     241    char scratch_size[16] = {0}, scratch_inode[21] = {0}; 
    242242    char f_type = '-'; 
    243243    char group_x_char = '-'; 
     
    300300    if (opts->list_inode) 
    301301    { 
    302         snprintf(scratch_inode,16,"%llu ",llu(handle)); 
     302        snprintf(scratch_inode,21,"%llu ",llu(handle)); 
    303303        inode = scratch_inode; 
    304304    }