Changeset 1401 for trunk


Ignore:
Timestamp:
07/29/11 22:13:45 (10 months ago)
Author:
uwe
Message:

Use func instead of FUNCTION as we do elsewhere.

The func variant is standardized in C99 and recommended to be
used instead of FUNCTION in the gcc info page.

See also r711 where we did the same change.

Signed-off-by: Uwe Hermann <uwe@…>
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/it85spi.c

    r1397 r1401  
    115115        int ret, tries; 
    116116 
    117         msg_pdbg("%s():%d was called ...\n", __FUNCTION__, __LINE__); 
     117        msg_pdbg("%s():%d was called ...\n", __func__, __LINE__); 
    118118        if (it85xx_scratch_rom_reenter > 0) 
    119119                return; 
     
    132132                if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 
    133133                             "* timeout at waiting for IBF==0.\n", 
    134                              __FUNCTION__, __LINE__)) 
     134                             __func__, __LINE__)) 
    135135                        continue; 
    136136 
     
    141141                if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 
    142142                             "* timeout at taking command.\n", 
    143                              __FUNCTION__, __LINE__)) 
     143                             __func__, __LINE__)) 
    144144                        continue; 
    145145 
     
    149149                if (wait_for(KB_OBF, KB_OBF, MAX_TIMEOUT, NULL, NULL, 0)) 
    150150                        msg_pdbg("%s():%d * timeout at waiting for OBF.\n", 
    151                                  __FUNCTION__, __LINE__); 
     151                                 __func__, __LINE__); 
    152152                if ((ret = INB(LEGACY_KBC_PORT_DATA)) == 0xFA) { 
    153153                        break; 
    154154                } else { 
    155155                        msg_perr("%s():%d * not run on SRAM ret=%d\n", 
    156                                  __FUNCTION__, __LINE__, ret); 
     156                                 __func__, __LINE__, ret); 
    157157                        continue; 
    158158                } 
     
    162162                /* EC already runs on SRAM */ 
    163163                it85xx_scratch_rom_reenter++; 
    164                 msg_pdbg("%s():%d * SUCCESS.\n", __FUNCTION__, __LINE__); 
     164                msg_pdbg("%s():%d * SUCCESS.\n", __func__, __LINE__); 
    165165        } else { 
    166                 msg_perr("%s():%d * Max try reached.\n", 
    167                          __FUNCTION__, __LINE__); 
     166                msg_perr("%s():%d * Max try reached.\n", __func__, __LINE__); 
    168167        } 
    169168} 
     
    176175        int tries; 
    177176 
    178         msg_pdbg("%s():%d was called ...\n", __FUNCTION__, __LINE__); 
     177        msg_pdbg("%s():%d was called ...\n", __func__, __LINE__); 
    179178        if (it85xx_scratch_rom_reenter <= 0) 
    180179                return; 
     
    184183                if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 
    185184                             "* timeout at waiting for IBF==0.\n", 
    186                              __FUNCTION__, __LINE__)) 
     185                             __func__, __LINE__)) 
    187186                        continue; 
    188187 
     
    193192                if (wait_for(KB_IBF, 0, MAX_TIMEOUT, 
    194193                             "* timeout at taking command.\n", 
    195                              __FUNCTION__, __LINE__)) { 
     194                             __func__, __LINE__)) { 
    196195                        /* We cannot ensure if EC has exited update mode. 
    197196                         * If EC is in normal mode already, a further 0xFE 
     
    206205        if (tries < MAX_TRY) { 
    207206                it85xx_scratch_rom_reenter = 0; 
    208                 msg_pdbg("%s():%d * SUCCESS.\n", __FUNCTION__, __LINE__); 
     207                msg_pdbg("%s():%d * SUCCESS.\n", __func__, __LINE__); 
    209208        } else { 
    210                 msg_perr("%s():%d * Max try reached.\n", 
    211                          __FUNCTION__, __LINE__); 
     209                msg_perr("%s():%d * Max try reached.\n", __func__, __LINE__); 
    212210        } 
    213211 
Note: See TracChangeset for help on using the changeset viewer.