Changeset 3fafe5e0 in mainline


Ignore:
Timestamp:
2018-04-27T14:15:03Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7148abf
Parents:
a2eb85d
git-author:
Jiri Svoboda <jiri@…> (2018-04-26 17:14:26)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-27 14:15:03)
Message:

Fix incorrectly indented double-slash comments.

Location:
uspace
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/dltest/dltest.c

    ra2eb85d r3fafe5e0  
    891891#endif /* STATIC_EXE */
    892892
    893 //      printf("dlclose()... ");
    894 //      dlclose(handle);
    895 //      printf("Passed\n");
     893#if 0
     894        printf("dlclose()... ");
     895        dlclose(handle);
     896        printf("Passed\n");
     897#endif
    896898
    897899        return 0;
  • uspace/app/trace/trace.c

    ra2eb85d r3fafe5e0  
    381381        rc = udebug_args_read(sess, thread_hash, sc_args);
    382382
    383 //      printf("[%d] ", thread_id);
    384 
    385383        if (rc != EOK) {
    386384                printf("error\n");
     
    454452                    &ev_type, &val0, &val1);
    455453
    456 //              printf("rc = %d, ev_type=%d\n", rc, ev_type);
    457454                if (ev_type == UDEBUG_EVENT_FINISHED) {
    458455                        /* Done tracing this thread */
  • uspace/app/wavplay/wave.c

    ra2eb85d r3fafe5e0  
    8686                if (error)
    8787                        *error = "invalid subchunk1 size";
    88 //              return EINVAL;
     88                return EINVAL;
    8989        }
    9090
     
    100100                if (error)
    101101                        *error = "invalid subchunk2 id";
    102 //              return EINVAL;
     102                return EINVAL;
    103103        }
    104104
  • uspace/drv/audio/hdaudio/codec.c

    ra2eb85d r3fafe5e0  
    129129                return rc;
    130130
    131 //      ddf_msg(LVL_NOTE, "hda_get_clist_len: resp=0x%x", resp);
     131        ddf_msg(LVL_DEBUG2, "hda_get_clist_len: resp=0x%x", resp);
    132132        *longform = resp & BIT_V(uint32_t, cll_longform);
    133133        *items = resp & BIT_RANGE_EXTRACT(uint32_t, cll_len_h, cll_len_l, resp);
     
    238238    uint32_t *resp)
    239239{
    240 //      ddf_msg(LVL_NOTE, "hda_get_amp_gain_mute(codec, %d, %x)",
    241 //          node, payload);
     240        ddf_msg(LVL_DEBUG2, "hda_get_amp_gain_mute(codec, %d, %x)",
     241            node, payload);
    242242        errno_t rc = hda_ccmd(codec, node, hda_amp_gain_mute_get, payload, resp);
    243 //      ddf_msg(LVL_NOTE, "hda_get_amp_gain_mute(codec, %d, %x, resp=%x)",
    244 //          node, payload, *resp);
     243        ddf_msg(LVL_DEBUG2, "hda_get_amp_gain_mute(codec, %d, %x, resp=%x)",
     244            node, payload, *resp);
    245245        return rc;
    246246}
     
    254254static errno_t hda_set_amp_gain_mute(hda_codec_t *codec, int node, uint16_t payload)
    255255{
    256 //      ddf_msg(LVL_NOTE, "hda_set_amp_gain_mute(codec, %d, %x)",
    257 //          node, payload);
     256        ddf_msg(LVL_DEBUG2, "hda_set_amp_gain_mute(codec, %d, %x)",
     257            node, payload);
    258258        return hda_ccmd(codec, node, hda_amp_gain_mute_set, payload, NULL);
    259259}
     
    362362        }
    363363
    364 //      ddf_msg(LVL_NOTE, "longform:%d len:%d", longform, len);
     364        ddf_msg(LVL_DEBUG2, "longform:%d len:%d", longform, len);
    365365
    366366        if (longform) {
  • uspace/drv/audio/hdaudio/hdactl.c

    ra2eb85d r3fafe5e0  
    644644                rc = hda_rirb_read(ctl->hda, &resp);
    645645                if (rc != EOK) {
    646 //                      ddf_msg(LVL_NOTE, "nothing in rirb");
     646                        ddf_msg(LVL_DEBUG2, "nothing in rirb");
    647647                        break;
    648648                }
  • uspace/drv/audio/hdaudio/hdaudio.c

    ra2eb85d r3fafe5e0  
    374374        if (0)
    375375                ddf_msg(LVL_NOTE, "## interrupt ##");
    376 //      ddf_msg(LVL_NOTE, "interrupt arg4=0x%x", (int)IPC_GET_ARG4(*icall));
    377376        hda_ctl_interrupt(hda->ctl);
    378377
  • uspace/drv/audio/hdaudio/stream.c

    ra2eb85d r3fafe5e0  
    5656        hda_stream_buffers_t *bufs = NULL;
    5757        size_t i;
    58 //      size_t j, k;
     58        //size_t j, k;
    5959        errno_t rc;
    6060
  • uspace/drv/bus/usb/ehci/hw_struct/queue_head.c

    ra2eb85d r3fafe5e0  
    5555
    5656        EHCI_MEM32_WR(instance->horizontal, LINK_POINTER_TERM);
    57 //      EHCI_MEM32_WR(instance->current, LINK_POINTER_TERM);
     57#if 0
     58        EHCI_MEM32_WR(instance->current, LINK_POINTER_TERM);
     59#endif
    5860        EHCI_MEM32_WR(instance->next, LINK_POINTER_TERM);
    5961        EHCI_MEM32_WR(instance->alternate, LINK_POINTER_TERM);
  • uspace/drv/bus/usb/uhci/uhci_rh.c

    ra2eb85d r3fafe5e0  
    246246            UHCI2USB(val, STATUS_CONNECTED_CHANGED, USB_HUB_PORT_STATUS_C_CONNECTION) |
    247247            UHCI2USB(val, STATUS_ENABLED_CHANGED, USB2_HUB_PORT_STATUS_C_ENABLE) |
    248 //          UHCI2USB(val, STATUS_SUSPEND, USB2_HUB_PORT_STATUS_C_SUSPEND) |
     248#if 0
     249            UHCI2USB(val, STATUS_SUSPEND, USB2_HUB_PORT_STATUS_C_SUSPEND) |
     250#endif
    249251            (hub->reset_changed[port] ?  USB_HUB_PORT_STATUS_C_RESET : 0));
    250252        RH_DEBUG(hub, port, "Port status %" PRIx32 " (source %" PRIx16
  • uspace/drv/bus/usb/xhci/hw_struct/trb.h

    ra2eb85d r3fafe5e0  
    4848        XHCI_TRB_TYPE_RESERVED = 0,
    4949
    50 // Transfer ring:
     50        /*
     51         * Transfer ring:
     52         */
    5153        XHCI_TRB_TYPE_NORMAL,
    5254        XHCI_TRB_TYPE_SETUP_STAGE,
     
    5860        XHCI_TRB_TYPE_NO_OP,
    5961
    60 // Command ring:
     62        /*
     63         * Command ring:
     64         */
    6165        XHCI_TRB_TYPE_ENABLE_SLOT_CMD,
    6266        XHCI_TRB_TYPE_DISABLE_SLOT_CMD,
     
    7478        XHCI_TRB_TYPE_FORCE_HEADER_CMD,
    7579        XHCI_TRB_TYPE_NO_OP_CMD,
    76 // Reserved: 24-31
    77 
    78 // Event ring:
     80        /*
     81         * Reserved: 24-31
     82        */
     83
     84        /*
     85         * Event ring:
     86         */
    7987        XHCI_TRB_TYPE_TRANSFER_EVENT = 32,
    8088        XHCI_TRB_TYPE_COMMAND_COMPLETION_EVENT,
  • uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c

    ra2eb85d r3fafe5e0  
    204204        /* modes taken from u-boot, for 1024x768 */
    205205        // TODO replace magic values with actual correct values
    206 //      regs->timing_h = 0x1a4024c9;
    207 //      regs->timing_v = 0x02c00509;
    208 //      regs->pol_freq = 0x00007028;
    209 //      regs->divisor  = 0x00010001;
     206#if 0
     207        regs->timing_h = 0x1a4024c9;
     208        regs->timing_v = 0x02c00509;
     209        regs->pol_freq = 0x00007028;
     210        regs->divisor  = 0x00010001;
     211#endif
    210212
    211213        /* setup output */
  • uspace/lib/c/arch/ia32/src/rtld/reloc.c

    ra2eb85d r3fafe5e0  
    8484
    8585        for (i = 0; i < rt_entries; ++i) {
    86 //              DPRINTF("symbol %d: ", i);
     86#if 0
     87                DPRINTF("symbol %d: ", i);
     88#endif
    8789                r_offset = rt[i].r_offset;
    8890                r_info = rt[i].r_info;
     
    100102
    101103                if (sym->st_name != 0) {
    102 //                      DPRINTF("rel_type: %x, rel_offset: 0x%x\n", rel_type, r_offset);
     104#if 0
     105                        DPRINTF("rel_type: %x, rel_offset: 0x%x\n", rel_type, r_offset);
     106#endif
    103107                        sym_def = symbol_def_find(str_tab + sym->st_name,
    104108                            m, ssf_none, &dest);
    105109                        DPRINTF("dest name: '%s'\n", dest->dyn.soname);
    106 //                      DPRINTF("dest bias: 0x%x\n", dest->bias);
     110                        DPRINTF("dest bias: 0x%x\n", dest->bias);
    107111                        if (sym_def) {
    108112                                sym_addr = (uint32_t)
    109113                                    symbol_get_addr(sym_def, dest, NULL);
    110 //                              DPRINTF("symbol definition found, addr=0x%x\n", sym_addr);
     114#if 0
     115                                DPRINTF("symbol definition found, addr=0x%x\n", sym_addr);
     116#endif
    111117                        } else {
    112118                                printf("Definition of '%s' not found.\n",
  • uspace/lib/c/generic/elf/elf_mod.c

    ra2eb85d r3fafe5e0  
    298298                break;
    299299        case PT_SHLIB:
    300 //      case PT_LOPROC:
    301 //      case PT_HIPROC:
    302300        default:
    303301                DPRINTF("Segment p_type %d unknown.\n", entry->p_type);
     
    397395                return EE_OK;
    398396
    399 //      printf("set area flags to %d\n", flags);
    400397        rc = as_area_change_flags(seg_ptr, flags);
    401398        if (rc != EOK) {
  • uspace/lib/drv/generic/remote_usbhid.c

    ra2eb85d r3fafe5e0  
    287287static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
    288288static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
    289 // static void remote_usbhid_(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);
    290289
    291290/** Remote USB HID interface operations. */
     
    305304};
    306305
    307 //usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;
    308 
    309306
    310307void remote_usbhid_get_event_length(ddf_fun_t *fun, void *iface,
     
    322319
    323320        size_t len = hid_iface->get_event_length(fun);
    324 //      if (len == 0) {
    325 //              len = EEMPTY;
    326 //      }
    327321        async_answer_1(chandle, EOK, len);
    328 
    329 //      if (len < 0) {
    330 //              async_answer_0(chandle, len);
    331 //      } else {
    332 //              async_answer_1(chandle, EOK, len);
    333 //      }
    334322}
    335323
     
    352340                return;
    353341        }
    354 //      /* Check that length is even number. Truncate otherwise. */
    355 //      if ((len % 2) == 1) {
    356 //              len--;
    357 //      }
     342
    358343        if (len == 0) {
    359344                async_answer_0(data_chandle, EINVAL);
  • uspace/lib/label/src/gpt.c

    ra2eb85d r3fafe5e0  
    809809        pte->start_lba = host2uint64_t_le(part->block0);
    810810        pte->end_lba = host2uint64_t_le(eblock);
    811 //      pte->attributes
    812 //      pte->part_name
     811        //pte->attributes
     812        //pte->part_name
    813813        return EOK;
    814814}
  • uspace/lib/posix/src/sys/mman.c

    ra2eb85d r3fafe5e0  
    4545                start = AS_AREA_ANY;
    4646
    47 //      if (!((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE)))
    48 //              return MAP_FAILED;
     47#if 0
     48        if (!((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE)))
     49                return MAP_FAILED;
     50#endif
    4951
    5052        if (!(flags & MAP_ANONYMOUS))
  • uspace/lib/posix/src/time.c

    ra2eb85d r3fafe5e0  
    216216
    217217        switch (clock_id) {
    218                 case CLOCK_REALTIME:
    219                         res->tv_sec = 0;
    220                         res->tv_nsec = 1000; /* Microsecond resolution. */
    221                         return 0;
    222                 default:
    223                         errno = EINVAL;
    224                         return -1;
     218        case CLOCK_REALTIME:
     219                res->tv_sec = 0;
     220                res->tv_nsec = 1000; /* Microsecond resolution. */
     221                return 0;
     222        default:
     223                errno = EINVAL;
     224                return -1;
    225225        }
    226226}
     
    240240
    241241        switch (clock_id) {
    242                 case CLOCK_REALTIME:
    243                         gettimeofday(&tv, NULL);
    244                         tp->tv_sec = tv.tv_sec;
    245                         tp->tv_nsec = tv.tv_usec * 1000;
    246                         return 0;
    247                 default:
    248                         errno = EINVAL;
    249                         return -1;
     242        case CLOCK_REALTIME:
     243                gettimeofday(&tv, NULL);
     244                tp->tv_sec = tv.tv_sec;
     245                tp->tv_nsec = tv.tv_usec * 1000;
     246                return 0;
     247        default:
     248                errno = EINVAL;
     249                return -1;
    250250        }
    251251}
     
    265265
    266266        switch (clock_id) {
    267                 case CLOCK_REALTIME:
    268                         // TODO: setting clock
    269                         // FIXME: HelenOS doesn't actually support hardware
    270                         //        clock yet
    271                         errno = EPERM;
    272                         return -1;
    273                 default:
    274                         errno = EINVAL;
    275                         return -1;
     267        case CLOCK_REALTIME:
     268                // TODO: setting clock
     269                // FIXME: HelenOS doesn't actually support hardware
     270                //        clock yet
     271                errno = EPERM;
     272                return -1;
     273        default:
     274                errno = EINVAL;
     275                return -1;
    276276        }
    277277}
     
    293293
    294294        switch (clock_id) {
    295                 case CLOCK_REALTIME:
    296                         // TODO: interruptible sleep
    297                         if (rqtp->tv_sec != 0) {
    298                                 async_sleep(rqtp->tv_sec);
    299                         }
    300                         if (rqtp->tv_nsec != 0) {
    301                                 async_usleep(rqtp->tv_nsec / 1000);
    302                         }
    303                         return 0;
    304                 default:
    305                         errno = EINVAL;
    306                         return -1;
     295        case CLOCK_REALTIME:
     296                // TODO: interruptible sleep
     297                if (rqtp->tv_sec != 0) {
     298                        async_sleep(rqtp->tv_sec);
     299                }
     300                if (rqtp->tv_nsec != 0) {
     301                        async_usleep(rqtp->tv_nsec / 1000);
     302                }
     303                return 0;
     304        default:
     305                errno = EINVAL;
     306                return -1;
    307307        }
    308308}
  • uspace/lib/usbhid/src/hidreport.c

    ra2eb85d r3fafe5e0  
    172172        }
    173173
    174 //      uint8_t *report_desc = NULL;
    175 //      size_t report_size;
    176 
    177174        errno_t rc = usb_hid_get_report_descriptor(dev, report_desc, report_size);
    178175
  • uspace/srv/fs/exfat/exfat_ops.c

    ra2eb85d r3fafe5e0  
    12041204
    12051205        if (info != NULL) {
    1206 //              str_cpy(info->label, FS_LABEL_MAXLEN + 1, label);
     1206#if 0
     1207                str_cpy(info->label, FS_LABEL_MAXLEN + 1, label);
     1208#endif
    12071209        }
    12081210
  • uspace/srv/net/tcp/conn.c

    ra2eb85d r3fafe5e0  
    14221422        if (tcp_conn_lb == tcp_lb_segment) {
    14231423                /* Loop back segment */
    1424 //              tcp_ncsim_bounce_seg(sp, seg);
     1424#if 0
     1425                tcp_ncsim_bounce_seg(sp, seg);
     1426#endif
    14251427
    14261428                /* Reverse the identification */
  • uspace/srv/net/tcp/service.c

    ra2eb85d r3fafe5e0  
    567567        }
    568568
    569 //      tcp_uc_close(cconn->conn);
     569#if 0
     570        tcp_uc_close(cconn->conn);
     571#endif
    570572        tcp_clistener_destroy(clst);
    571573        return EOK;
  • uspace/srv/net/udp/service.c

    ra2eb85d r3fafe5e0  
    8787        rqe->cassoc = cassoc;
    8888
    89 //      fibril_mutex_lock(&assoc->lock);
    9089        list_append(&rqe->link, &cassoc->client->crcv_queue);
    91 //      fibril_mutex_unlock(&assoc->lock);
    92 
    93 //      fibril_condvar_broadcast(&assoc->rcv_queue_cv);
    94 
    9590        return EOK;
    9691}
Note: See TracChangeset for help on using the changeset viewer.