Changes in / [747ef72:2d1ba51] in mainline


Ignore:
Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mount/mount.c

    r747ef72 r2d1ba51  
    2727 */
    2828
    29 #include <loc.h>
    3029#include <stdio.h>
    3130#include <stdlib.h>
     
    6867{
    6968        LIST_INITIALIZE(mtab_list);
     69        get_mtab_list(&mtab_list);
     70
    7071        mtab_ent_t *old_ent = NULL;
    71         char *svc_name;
    72         int rc;
    73 
    74         get_mtab_list(&mtab_list);
    7572
    7673        list_foreach(mtab_list, cur) {
     
    8683                if (mtab_ent->instance)
    8784                        printf("/%d", mtab_ent->instance);
    88 
    89                 printf(" %s", mtab_ent->mp);
    90 
    91                 rc = loc_service_get_name(mtab_ent->service_id, &svc_name);
    92                 if (rc == EOK) {
    93                         printf(" %s", svc_name);
    94                         free(svc_name);
    95                 } else {
    96                         printf(" (%" PRIun ")", mtab_ent->service_id);
    97                 }
     85                printf(" on %s ", mtab_ent->mp);
    9886
    9987                if (str_size(mtab_ent->opts) > 0)
    100                         printf(" (%s)", mtab_ent->opts);
     88                        printf("opts=%s ", mtab_ent->opts);
    10189
    102                 putchar('\n');
     90                printf("(service=%" PRIun ")\n", mtab_ent->service_id);
    10391        }
    10492
  • uspace/app/locinfo/locinfo.c

    r747ef72 r2d1ba51  
    8989                        }
    9090                        printf("\t%s (%" PRIun ")\n", svc_name, svc_ids[j]);
    91                         free(svc_name);
    9291                }
    9392
  • uspace/srv/hid/input/ctl/kbdev.c

    r747ef72 r2d1ba51  
    111111                printf("%s: Failed allocating device structure for '%s'.\n",
    112112                    NAME, kdev->svc_name);
    113                 async_hangup(sess);
    114113                return -1;
    115114        }
     
    170169                callid = async_get_call(&call);
    171170                if (!IPC_GET_IMETHOD(call)) {
    172                         kbdev_destroy(kbdev);
     171                        /* XXX Handle hangup */
    173172                        return;
    174173                }
  • uspace/srv/hid/input/proto/mousedev.c

    r747ef72 r2d1ba51  
    5454        /** Link to generic mouse device */
    5555        mouse_dev_t *mouse_dev;
     56       
     57        /** Session to mouse device */
     58        async_sess_t *sess;
    5659} mousedev_t;
    5760
     
    6972static void mousedev_destroy(mousedev_t *mousedev)
    7073{
     74        if (mousedev->sess != NULL)
     75                async_hangup(mousedev->sess);
     76       
    7177        free(mousedev);
    7278}
     
    8389               
    8490                if (!IPC_GET_IMETHOD(call)) {
    85                         mousedev_destroy(mousedev);
     91                        /* XXX Handle hangup */
    8692                        return;
    8793                }
     
    123129                printf("%s: Failed allocating device structure for '%s'.\n",
    124130                    NAME, mdev->svc_name);
    125                 async_hangup(sess);
    126131                return -1;
    127132        }
     133       
     134        mousedev->sess = sess;
    128135       
    129136        async_exch_t *exch = async_exchange_begin(sess);
     
    132139                    mdev->svc_name);
    133140                mousedev_destroy(mousedev);
    134                 async_hangup(sess);
    135141                return -1;
    136142        }
     
    138144        int rc = async_connect_to_me(exch, 0, 0, 0, mousedev_callback_conn, mousedev);
    139145        async_exchange_end(exch);
    140         async_hangup(sess);
    141146       
    142147        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.