Rev 2745 | Rev 3059 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2745 | Rev 2797 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | * @file |
34 | * @file |
35 | * @brief Kernel symbol resolver. |
35 | * @brief Kernel symbol resolver. |
36 | */ |
36 | */ |
37 | 37 | ||
38 | #include <symtab.h> |
38 | #include <symtab.h> |
39 | #include <arch/byteorder.h> |
39 | #include <byteorder.h> |
40 | #include <func.h> |
40 | #include <func.h> |
41 | #include <print.h> |
41 | #include <print.h> |
42 | 42 | ||
43 | /** Return entry that seems most likely to correspond to argument. |
43 | /** Return entry that seems most likely to correspond to argument. |
44 | * |
44 | * |
Line 172... | Line 172... | ||
172 | while ((foundtxt = symtab_search_one(name, &startpos))) { |
172 | while ((foundtxt = symtab_search_one(name, &startpos))) { |
173 | startpos++; |
173 | startpos++; |
174 | if (!found) |
174 | if (!found) |
175 | strncpy(output, foundtxt, strlen(foundtxt)+1); |
175 | strncpy(output, foundtxt, strlen(foundtxt) + 1); |
176 | else { |
176 | else { |
177 | for (i=0; output[i] && foundtxt[i] && output[i]==foundtxt[i]; i++) |
177 | for (i = 0; output[i] && foundtxt[i] && |
- | 178 | output[i] == foundtxt[i]; i++) |
|
178 | ; |
179 | ; |
179 | output[i] = '\0'; |
180 | output[i] = '\0'; |
180 | } |
181 | } |
181 | found++; |
182 | found++; |
182 | } |
183 | } |