sys/compat/linux*: spelling fixes.

Mostly on comments but there are some user-visible messages as well.

MFC after: 2 weeks
This commit is contained in:
Pedro F. Giffuni 2016-04-30 00:53:10 +00:00
parent 72ffecf147
commit 1ce4275dd2
9 changed files with 9 additions and 9 deletions

View File

@ -64,7 +64,7 @@ linuxulator*:locks:futex_mtx:locked
linuxulator*:locks:futex_mtx:unlock
/check[probefunc] == 0/
{
printf("ERROR: unlock attemt of unlocked %s (%p),", probefunc, arg0);
printf("ERROR: unlock attempt of unlocked %s (%p),", probefunc, arg0);
printf(" missing SDT probe in kernel, or dtrace program started");
printf(" while the %s was already held (race condition).", probefunc);
printf(" Stack trace follows:");

View File

@ -163,7 +163,7 @@ linux_clone_proc(struct thread *td, struct linux_clone_args *args)
ff |= RFSIGSHARE;
/*
* XXX: In Linux, sharing of fs info (chroot/cwd/umask)
* and open files is independant. In FreeBSD, its in one
* and open files is independent. In FreeBSD, its in one
* structure but in reality it does not cause any problems
* because both of these flags are usually set together.
*/

View File

@ -199,7 +199,7 @@ linux_alarm(struct thread *td, struct linux_alarm_args *args)
#endif
secs = args->secs;
/*
* Linux alarm() is always successfull. Limit secs to INT32_MAX / 2
* Linux alarm() is always successful. Limit secs to INT32_MAX / 2
* to match kern_setitimer()'s limit to avoid error from it.
*
* XXX. Linux limit secs to INT_MAX on 32 and does not limit on 64-bit

View File

@ -79,7 +79,7 @@ struct l_cmsghdr {
l_int cmsg_type;
};
/* Ancilliary data object information macros */
/* Ancillary data object information macros */
#define LINUX_CMSG_ALIGN(len) roundup2(len, sizeof(l_ulong))
#define LINUX_CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + \

View File

@ -120,7 +120,7 @@ linuxulator*:locks:futex_mtx:locked
linuxulator*:locks:futex_mtx:unlock
/check[probefunc, arg0] == 0/
{
printf("ERROR: unlock attemt of unlocked %s (%p),", probefunc, arg0);
printf("ERROR: unlock attempt of unlocked %s (%p),", probefunc, arg0);
printf(" missing SDT probe in kernel, or dtrace program started");
printf(" while the %s was already held (race condition).", probefunc);
printf(" Stack trace follows:");

View File

@ -115,7 +115,7 @@ dma_set_coherent_mask(struct device *dev, u64 mask)
if (!dma_supported(dev, mask))
return -EIO;
/* XXX Currently we don't support a seperate coherent mask. */
/* XXX Currently we don't support a separate coherent mask. */
return 0;
}

View File

@ -50,7 +50,7 @@ dma_pool_create(char *name, struct device *dev, size_t size,
pool = kmalloc(sizeof(*pool), GFP_KERNEL);
align--;
/*
* XXX Eventually this could use a seperate allocf to honor boundary
* XXX Eventually this could use a separate allocf to honor boundary
* and physical address requirements of the device.
*/
pool->pool_zone = uma_zcreate(name, size, NULL, NULL, NULL, NULL,

View File

@ -187,7 +187,7 @@ radix_tree_insert(struct radix_tree_root *root, unsigned long index, void *item)
if (temp[idx] == NULL) {
while(idx--)
free(temp[idx], M_RADIX);
/* check if we should free the root node aswell */
/* Check if we should free the root node as well. */
if (root->rnode->count == 0) {
free(root->rnode, M_RADIX);
root->rnode = NULL;

View File

@ -649,7 +649,7 @@ done:
* Return values:
* 0: Success
* < 0: Failure
* > 0: Acutal length
* > 0: Actual length
*------------------------------------------------------------------------*/
int
usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe,